mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2024-09-19 20:24:54 +00:00
Updated Font (markdown)
parent
d4ee6d549b
commit
d83ba014d8
1 changed files with 6 additions and 1 deletions
7
Font.md
7
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$)
|
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.
|
* 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.
|
* In Windows, if a path isn't specified the default font location **C:\Windows\Font** is searched.
|
||||||
* FontSize% is in pixels, not points.
|
* FontSize% is in pixels, not points.
|
||||||
|
@ -26,6 +27,10 @@ The default font for new controls is:
|
||||||
|
|
||||||
segoeui.ttf**12
|
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).
|
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:
|
## Controls that can use the Font property:
|
||||||
|
|
Loading…
Reference in a new issue