Promotic
WikipediaLinkedInYoutubeTwitterFacebook

font - property of object CanvasCtx

Description:
Sets or returns the current font properties for text content.
Syntax:
font As String
Calling:
ctx.font = "10px sans-serif";
ctx.font = "bold 10px sans-serif";
ctx.font = "italic small-caps bold 12px arial";
Values:
font-style - Specifies the font style.
normal (default)
italic
oblique
font-variant - Specifies the font subset.
normal (default)
small-caps
font-weight - Specifies whether the font is bold.
normal (default)
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
font-size - (default: 10px) Specifies the font size (in pixels).
font-family - (default: sans-serif) Specifies the font family (sans-serif, arial, verdana). If the font family name contains a space then it is necessary to use apostrophes.
caption - Uses the font settings from OS Windows theme control items (buttons, ...)
icon - Uses the font settings from OS Windows theme icons
menu - Uses the font settings from OS Windows theme drop-down menus
message-box - Uses the font settings from OS Windows theme
small-caption - Uses the font settings from OS Windows theme for selecting small control items
status-bar - Uses the font settings from OS Windows theme for status lines
Note:
Property access for read and write.
 
Syntax: "font-style font-variant font-weight font-size font-family". The preset values in the string can be bypassed from left. Bypassing inside or from right side is not possible.
 
This property is also functional for Web Panels.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice