Skip to content

Commit a8d02cc

Browse files
committed
Removed deprecated glyph range builder stuff
1 parent b5d356b commit a8d02cc

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/ngscopeclient/FontManager.cpp

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* *
33
* ngscopeclient *
44
* *
5-
* Copyright (c) 2012-2024 Andrew D. Zonenberg *
5+
* Copyright (c) 2012-2025 Andrew D. Zonenberg *
66
* All rights reserved. *
77
* *
88
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
@@ -79,24 +79,6 @@ bool FontManager::UpdateFonts(PreferenceCategory& root, float contentScale)
7979
atlas->Clear();
8080
m_fonts.clear();
8181

82-
//Add default Latin-1 glyph ranges plus some Greek letters and math symbols we use
83-
ImFontGlyphRangesBuilder builder;
84-
builder.AddRanges(io.Fonts->GetGlyphRangesGreek());
85-
builder.AddChar(L'°');
86-
builder.AddChar(L'');
87-
builder.AddChar(L'×'); //multiplication sign, not a letter 'x'
88-
builder.AddChar(L'÷');
89-
builder.AddChar(L'');
90-
builder.AddChar(L'');
91-
builder.AddChar(L'');
92-
builder.AddChar(L'');
93-
builder.AddChar(L'²'); //U+00B2 superscript two
94-
builder.AddChar(L''); //U+2500 box drawings light horizontal
95-
96-
//Build the range of glyphs we're using for the font
97-
ImVector<ImWchar> ranges;
98-
builder.BuildRanges(&ranges);
99-
10082
//Load the fonts
10183
ImFontConfig config;
10284
config.PixelSnapH = true;
@@ -123,7 +105,7 @@ bool FontManager::UpdateFonts(PreferenceCategory& root, float contentScale)
123105
fname = defaultFontPath;
124106
}
125107

126-
m_fonts[f] = atlas->AddFontFromFileTTF(fname.c_str(), scaledsize, &config, ranges.Data);
108+
m_fonts[f] = atlas->AddFontFromFileTTF(fname.c_str(), scaledsize, &config);
127109
}
128110

129111
//Done loading fonts, build the texture

0 commit comments

Comments
 (0)