🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.graphics
Article #46

Re: MS LineDraw printing on WIn3.X GDI?

#46
From: Marius Groenendijk
Date: Wed, 27 May 1998 00:00
29 lines
1655 bytes

Jerry Coffin wrote in message ...
>In article <6kerhu$mue$1@xenon.inbe.net>, Marius@Revolux.luxembourg
>says...
>> Hi,
>>
>> How can I print MS LineDraw chars? I'm using the GDI for Windows 3.X.
>> I create a logical font (LOGFONT) with CreateFont (and
CreateFontIndirect)
>> and then set the resulting font with SelectObject on the device context.
>
>What character set are you specifying when you call CreateFont?  For
>line-drawing characters, you need to ask for a fixed-width, OEM
>character set.


lfFaceName = "MS LineDraw"
lfCharSet = OEM_CHARSET
lfPitchAndFamily = FIXED_PITCH | MM_DONTCARE

And many more combinations thereof (DEFAULT_CHARSET, ANSI..., SYMBOL...)

I suppose CreateFont or CreateFontIndirect are really the same thing (did
some
tests and got always same behaviour).

Thanks,
  Marius.
Technical Details
Message-ID: <6kghf6$as0$1@xenon.inbe.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6kerhu$mue$1@xenon.inbe.net> <MPG.fd4aaff1ca57a70989ac6@news.rmi.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dfb,991c8e51b5080534
X-Google-Attributes: gid113dfb,public
X-Google-Thread: 101278,991c8e51b5080534
X-Google-Attributes: gid101278,public
X-Google-Thread: 1053e6,991c8e51b5080534
X-Google-Attributes: gid1053e6,public
From: "Marius Groenendijk" <Marius@Revolux.luxembourg>
Subject: Re: MS LineDraw printing on WIn3.X GDI?
Date: 1998/05/27
Message-ID: <6kghf6$as0$1@xenon.inbe.net>
X-Deja-AN: 356917279
References: <6kerhu$mue$1@xenon.inbe.net> <MPG.fd4aaff1ca57a70989ac6@news.rmi.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: UUNET Benelux (post does not reflect views of UUNET Benelux)
Newsgroups: comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.win32,fr.comp.os.ms-windows.programmation