digitalmars.D.learn - sdl 2 - text is not displayed correctly
- TodNaz (8/8) Jan 15 2020 Hello!
- drug (5/14) Jan 15 2020 Probably the reason is wrong font. Are you sure your font contains
- TodNaz (4/19) Jan 16 2020 Thanks for answering. I forgot to mention, the characters are
- TodNaz (3/18) Jan 16 2020 You were right. I downloaded another font with the Cyrillic
- TodNaz (2/2) Jan 16 2020 Maybe I made a mistake? Sorry, I'm new to this business ...
Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect characters (with these: "<?>"). And with wstribg and TTF_RendererUNICODE_Blended, the surface has the wrong size. Maybe someone knows what to do? Thanks in advance! [Sorry for the bad English, the translator helped.]
Jan 15 2020
On 1/15/20 6:26 PM, TodNaz wrote:Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect characters (with these: "<?>"). And with wstribg and TTF_RendererUNICODE_Blended, the surface has the wrong size. Maybe someone knows what to do? Thanks in advance! [Sorry for the bad English, the translator helped.]Probably the reason is wrong font. Are you sure your font contains Cyrillic symbols? Try the following fonts: https://github.com/Immediate-Mode-UI/Nuklear/tree/master/extra_font IIRC, DroidSans.ttf contains Cyrillic symbols, probably others too
Jan 15 2020
On Wednesday, 15 January 2020 at 16:28:58 UTC, drug wrote:On 1/15/20 6:26 PM, TodNaz wrote:Thanks for answering. I forgot to mention, the characters are displayed, and the last one that displayed the character becomes invalid, like: <?>. Fonts have nothing to do with it. Any ideas?Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect characters (with these: "<?>"). And with wstribg and TTF_RendererUNICODE_Blended, the surface has the wrong size. Maybe someone knows what to do? Thanks in advance! [Sorry for the bad English, the translator helped.]Probably the reason is wrong font. Are you sure your font contains Cyrillic symbols? Try the following fonts: https://github.com/Immediate-Mode-UI/Nuklear/tree/master/extra_font IIRC, DroidSans.ttf contains Cyrillic symbols, probably others too
Jan 16 2020
On Wednesday, 15 January 2020 at 16:28:58 UTC, drug wrote:On 1/15/20 6:26 PM, TodNaz wrote:You were right. I downloaded another font with the Cyrillic alphabet, and the problem is solved. thanks!Hello! Maybe someone came across ... I use sdl 2 derelcit, and wanted to draw text (not English, but Russian, for example). And when called in TTF_RenderUTF8_Blended, the text is drawn with incorrect characters (with these: "<?>"). And with wstribg and TTF_RendererUNICODE_Blended, the surface has the wrong size. Maybe someone knows what to do? Thanks in advance! [Sorry for the bad English, the translator helped.]Probably the reason is wrong font. Are you sure your font contains Cyrillic symbols? Try the following fonts: https://github.com/Immediate-Mode-UI/Nuklear/tree/master/extra_font IIRC, DroidSans.ttf contains Cyrillic symbols, probably others too
Jan 16 2020
Maybe I made a mistake? Sorry, I'm new to this business ... [https://pastebin.com/Yyzg4iZf]
Jan 16 2020