Why do I load the third font pTexture is nullptr #5956
Closed
shimenga
started this conversation in
New Users Build/Link/Run issues ONLY!
Replies: 1 comment
-
|
71.0f size + oversample + GetGlyphRangesChineseFull() is too big and won't fit. From: "If you have very large number of glyphs or multiple fonts, the texture may become too big for your graphics API. The typical result of failing to upload a texture is if every glyph appears as a white rectangle." |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
io.Fonts->AddFontFromFileTTF(R"(C:\Windows\Fonts\msyh.ttc)", 18.0f, nullptr, io.Fonts->GetGlyphRangesChineseFull());
Logofont = io.Fonts->AddFontFromMemoryTTF((void*)DiPaiTi_data, DiPaiTi_size, 71.0f, nullptr, io.Fonts->GetGlyphRangesChineseFull());
Modulefont = io.Fonts->AddFontFromMemoryTTF((void*)YeZiGongChangRunYuanTi_data,YeZiGongChangRunYuanTi_size, 25, nullptr, io.Fonts->GetGlyphRangesChineseFull());
Beta Was this translation helpful? Give feedback.
All reactions