You need to download the font and put it in the current directory. StartVectorDrawing(CanvasVectorOutput(0))ĭrawVectorText("The quick brown fox jumps over the lazy dog") 10 11 12 13 Next Quin Enthusiast Posts: 150 Joined: Thu 6:03 pm Location: United States Re: PureBasic 6. OpenWindow(0, 0, 0, 400, 400, "Font Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If RegisterFontFile("BerkshireSwash-Regular.ttf") In that case, "register" doesn't mean install it on the system, it means make it available within your program.Ĭode: Select all LoadFont(0, "Arial", 16) This way you can provide the right font by including it with your app. You don't need to install a font if you are using RegisterFontFile(). This is the way to ensure the right font is available. You can use EnumFontFamilies_() to find out beforehand whether the exact required font is available or not. This way, a system without the desired font will use a most similar one, so the application works anyway. Always report the name of the selected font to the user. For example, if you request a font named Palatino, but no such font is available on the system, the font mapper will substitute a font that has similar attributes but a different name. Because available fonts can vary from system to system, do not assume that the selected font is always the same as the requested font. To help protect the copyrights of vendors who provide fonts for Windows, applications should always report the exact name of a selected font.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |