Skip to content

Commit

Permalink
migration: font atlas processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Dec 10, 2022
1 parent 3785b32 commit c2ebb7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c2ebb7c

Please sign in to comment.