From c2ebb7ca9c794462e6d559b15b71271e60346adb Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Sat, 10 Dec 2022 22:26:57 +0100 Subject: [PATCH] migration: font atlas processor --- migration.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/migration.sh b/migration.sh index afcb029d..9c351cf7 100755 --- a/migration.sh +++ b/migration.sh @@ -269,3 +269,12 @@ sed -i -e 's/\(BeginPopup.*(.*\)int(\(p.flags\))/\1cimgui.ImGuiWindowFlags(\2)/g sed -i -e 's/\(.*\)= \(cimgui\.\)\(WindowPos\)()/\1= cimgui.ImVec2{};\2Get\3(\&\1)/g' Window.go sed -i -e 's/\(.*\)= \(cimgui\.\)\(WindowSize\)()/\1= cimgui.ImVec2{};\2Get\3(\&\1)/g' Window.go sed -i -e 's/\(cimgui\.Begin.*\)int\((.*flags).*\)/\1cimgui\.ImGuiWindowFlags\2/g' Window.go + +# FontAtlasProcessor.go +# +sed -i -e 's/\(IO()\.\)\(Fonts()\)/\1Get\2/g' $files + +sed -i -e 's/\(cimgui\.\)NewGlyphRanges/\1NewGlyphRange/g' $files +sed -i -e 's/\(cimgui\.New\)\(FontGlyphRangesBuilder\)/\1Im\2/g' $files +sed -i -e 's/\(fonts\.\)\(GlyphRangesDefault\)/\1Get\2/g' $files +sed -i -e 's/\(cimgui\.New\)\(FontConfig\)/\1Im\2/g' $files