Hello,
After my testing, you could refer to the following steps to get your font file to work on Android.
Step 1: Add and register a font file called MyFont
by this document: Fonts - Register fonts.
fonts.AddFont("MyFont.ttf", "MyFont");
Step 2: In the Draw method, when creating a font object for the Android platform, you need to include the suffix to take effect:
#if WINDOWS
canvas.Font = new Font(FontFaceType,SelectFontWeight.FontWeight(FontWeights));
#elif ANDROID
canvas.Font = new Font("MyFont.ttf", 18);
#endif
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.