1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-09-19 12:14:49 +00:00

Updated Font (markdown)

Fellippe Heitor 2018-01-09 20:23:25 -02:00
parent d4ee6d549b
commit d83ba014d8

@ -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: