CreateFont(font as String, size as Numeric, type as Numeric, color as Numeric) as FontType
Erzeugen einer Schriftart.
Parameter
font
Name der Schrift
size
Schriftgr÷▀e in Punkt
type
eine Kombination der Schriftkonstanten FONT_NORMAL, FONT_BOLD, FONT_ITALIC, FONT_BOLD_ITALIC
color
eine Farbkonstante alsTextfarbe, z.B. COLOR_BLACK
Beschreibung
Diese Funktion liefert einen FontType -Wert zurⁿck. Mit Hilfe dieses Wertes kann die Funktion SelectFont den aktuellen Font setzen.
Beispiel
Dim f as FontType = CreateFont ("Arial", 12, FONT_NORMAL, COLOR_BLACK)
SelectFont (f)
Dim f as FontType |
Definieren der Variable f als Identifikator |
CreateFont |
Erzeugen des Fonts |
Arial |
Schriftart (font) |
12 |
Schriftgr÷▀e |
FONT_NORMAL |
Schrifttyp |
COLOR_BLACK |
Schriftfarbe |
SelectFont |
Befehl |
f |
Identifikator |
Siehe auch