April 26, 2024, 05:25:49 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Printing

Started by Andy, May 23, 2017, 11:56:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

Here is the corrected version with fonts working.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Brian

Andy,

According to my Win 32 API book (1,500 pages, and counting), lfFaceName is indeed a string, which specifies the name of the typeface. If it is NULL, the GDI attempts to select the default device typeface

Brian

Andy

Brian,

Thanks for confirming that, it drove me stupid all yesterday.

Cheers,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Andy

June 05, 2017, 04:44:04 AM #53 Last Edit: June 05, 2017, 05:19:49 AM by Andy
I've sine changed it to:

istring lfFaceName[32]

As MS state the string must not be longer than 32 characters.

TYPE LOGFONT
INT lfHeight
INT lfWidth
INT lfEscapement
INT lfOrientation
INT lfWeight
CHAR lfItalic
CHAR lfUnderline
CHAR lfStrikeOut
CHAR lfCharSet
CHAR lfOutPrecision
CHAR lfClipPrecision
CHAR lfQuality
CHAR lfPitchAndFamily
istring lfFaceName[32]
ENDTYPE

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.