Article View: comp.windows.ms.programmer
Article #670Printing under Windows
From: Georg Trietsch
Date: Wed, 21 Nov 1990 09:50
Date: Wed, 21 Nov 1990 09:50
24 lines
1511 bytes
1511 bytes
Hi There!
This is the first time I have to print out from a windows application.
At this time I'm able to get the fonts and sizes supported by the
printer using the EnumFont function. I found in Petzold's bible a way
to compute the point size with fields of the TEXTMETRIC struct, which
is:
(tm.tmHeight - tm.tmInternalLeading + 10) / 20
Where mapmode is set to MM_TWIPS. Now I know that the default printer
is able to print several fonts in different sizes. I let the user
select font an size e.g. Lineprinter font in size of 8 Pt. How do I
compute the fields of the logical font struct to get 8 Pt..
Can anyone show me a short example how to select a printer font by name
an point size?
Thanks in advance.
Georg.
*********************************************************************
* ----- . | UUCP : trig@dkatrig.UUCP | Georg Trietsch *
* / /- / /_> | trig@dkatrig.ka.sub.org | Karlsruhe FRG *
* / / / _/ | Voice : +49 721 406357 | *
*********************************************************************
Technical Details
Message-ID:
<VqiZs1w162w@dkatrig.ka.sub.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!snorkelwacker.mit.edu!ira.uka.de!smurf!flatlin!dkatrig!trigShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!snorkelwacker.mit.edu!ira.uka.de!smurf!flatlin!dkatrig!trig From: trig@dkatrig.ka.sub.org (Georg Trietsch) Newsgroups: comp.windows.ms.programmer Subject: Printing under Windows Keywords: Printing, Fonts Message-ID: <VqiZs1w162w@dkatrig.ka.sub.org> Date: 21 Nov 90 09:50:30 GMT Organization: Trig's Private UUCP access Lines: 24