Font:configure

Grafische Primitive, XbaseParts und Darstellungsfragen allgemein.

Moderator: Moderatoren

Antworten
Benutzeravatar
AUGE_OHR
Marvin
Marvin
Beiträge: 12909
Registriert: Do, 16. Mär 2006 7:55
Wohnort: Hamburg
Hat sich bedankt: 19 Mal
Danksagung erhalten: 46 Mal

Font:configure

Beitrag von AUGE_OHR »

hi,

wenn ich einen Font eingestellt habe und dann mit oFont:Configure() z.b.
die Grösse verändere wie verhalten sich die vorher gesetzten Eigenschaften ?

Code: Alles auswählen

oFont := XbpFont():new()
oFont:familyName  := "Arial"        // Font beschreiben
oFont:height      := 28
oFont:width       :=  8
IF ID_CHINA                         // chinesisches OS
   oFont:Codepage := 186      // baltisch ?
ENDIF
oFont:create()                      // Font erzeugen
GraSetFont( oPrinter, oFont )

...

oFont:configure( "22.Arial" )
graSetFont( oPrinter, oFont )
GraStringAt( oPrinter, ....)
Frage :
a.) wirkt dann oFont:Codepage noch ?
b.) wie kann ich :configure( "22.Arial" ) "anders" schreiben ?
gruss by OHR
Jimmy
Antworten