Nov 4, 2014 Replies: 21 In order to add custom font files to your application you need to follow these instructions: 1. Add the font file to the "special" folder: <project>\Files\Special 2. Add the #AppFont attribute for each font file (including the extension): Code: #AppFont: papercuts-2.ttf #AppFont: vermidirouge 1.0.ttf 3. Find the font name. You can double click on the font file: 4. Create a new font with this font name. The name should not include spaces: Code: Label1.Font = Font.CreateNew2("VermidiRouge", 30) Label2.Font = Font.CreateNew2("PaperCuts2", 20) Note that #AppFont and the special folder features are not available in the current beta. Attachments CustomFonts.zip CustomFonts.zip 54.9 KB · Views: 1,833 Click to expand...
In order to add custom font files to your application you need to follow these instructions: 1. Add the font file to the "special" folder: <project>\Files\Special 2. Add the #AppFont attribute for each font file (including the extension): Code: #AppFont: papercuts-2.ttf #AppFont: vermidirouge 1.0.ttf 3. Find the font name. You can double click on the font file: 4. Create a new font with this font name. The name should not include spaces: Code: Label1.Font = Font.CreateNew2("VermidiRouge", 30) Label2.Font = Font.CreateNew2("PaperCuts2", 20) Note that #AppFont and the special folder features are not available in the current beta.
omidaghakhani1368 Well-Known Member Licensed User Longtime User Feb 22, 2015 #21 Erel said: Yes. You can either change the font size in Page_Resize event or set the "Handle Resize Event" property to false. Click to expand... Ok it test it future
Erel said: Yes. You can either change the font size in Page_Resize event or set the "Handle Resize Event" property to false. Click to expand... Ok it test it future
JanPRO Well-Known Member Licensed User Longtime User Oct 16, 2015 #22 I tried to use apple's san francisco font, but I got the following error: Object was not initialized (UIFont) Click to expand... My code: Code: #AppFont: SF-UI-Display-Thin.otf label1.Font = Font.CreateNew2("SFUIDisplayThin",20) Edit: I just checked Font.AvailableNames and saw that the correct name is "SFUIDisplay-Thin". Solved Last edited: Oct 17, 2015
I tried to use apple's san francisco font, but I got the following error: Object was not initialized (UIFont) Click to expand... My code: Code: #AppFont: SF-UI-Display-Thin.otf label1.Font = Font.CreateNew2("SFUIDisplayThin",20) Edit: I just checked Font.AvailableNames and saw that the correct name is "SFUIDisplay-Thin". Solved