From d83ba014d85b35433e7331e90496ae369785e327 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Tue, 9 Jan 2018 20:23:25 -0200 Subject: [PATCH] Updated Font (markdown) --- Font.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Font.md b/Font.md index 01cf6ea..3c98899 100644 --- a/Font.md +++ b/Font.md @@ -4,7 +4,8 @@ The Font property holds the handle of the loaded font associated with a control. Control(ControlID).Font = SetFont(FontName$, FontSize%, Attributes$) -* FontName$ must reference a font file. Only TTF fonts are accepted. +* FontName$ must reference a font file. Both TTF and OTF fonts are accepted. +* Multiple fonts can be specified as alternatives in case one fails to load. Indicate the desired fonts separated by a question mark. * If you don't specify a path, the current path is used. * In Windows, if a path isn't specified the default font location **C:\Windows\Font** is searched. * FontSize% is in pixels, not points. @@ -26,6 +27,10 @@ The default font for new controls is: segoeui.ttf**12 +Use a question mark (?) to specify multiple fonts. This is useful when you wish to specify replacement fonts in case the desired font isn't found or can't be loaded. + + Control(ControlID).Font = SetFont("font1.ttf?relative/path/font2.ttf?c:\absolutpath\font3.ttf", FontSize%, Attributes$) + If you don't set a control's font property, it will inherit its container's font (either the main form or a frame, if any). ## Controls that can use the Font property: