File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments