Problems to show latin characters #59
Unanswered
jjsanchemx
asked this question in
Q&A
Replies: 1 comment
-
|
Try this example with your font. Also the latest update requires fpc >= 3.3.1 Now static linking for windows. I left 64-bit support only. |
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.
-
Hi, i am using ray4lib 5.6 and Lazarus 4.2
i want to display text with latin characters ex. U00E1 with DrawTextPro using DejaVuSans.ttf font. In the console, with WriteLn the text looks good, but in the game window the latin characters show the ? symbol.
to load the font i use: SetLength(codepoints, 255);
for i := 0 to 1250 do
codepoints[i] := 32 + i;
LoadFontEx(PChar(GetApplicationDirectory + 'resources/DejaVuSans.ttf'), 60,
@Codepoints[0], Length(codepoints));
Beta Was this translation helpful? Give feedback.
All reactions