sdl 2 - text is not displayed correctly

drug drug2004 at bk.ru
Wed Jan 15 16:28:58 UTC 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


More information about the Digitalmars-d-learn mailing list