Show same text in different DC

P

Pimpirev

Hi all.
In windows. Is it possible to show text with the very same appearance in
different DC (for example 1. screan DC-LogPixelPerInch=96 ; 2. printer
DC-LogPixelPerInch=300 ; 3. . printer DC-LogPixelPerInch=1024)

Font size is 10, created by CreateFontIndirect(DC, LOGFONT)
1. LOGFONT.LfHeight := 13 ( -(10*96/72) = 13.3333...)
2. LOGFONT.LfHeight := 42 ( -(10*300/72) = 41.666...)
3. LOGFONT.LfHeight := 142 ( -(10*1024/72) = 142.222…)
 
J

John Harrison

Pimpirev said:
Hi all.
In windows. Is it possible to show text with the very same appearance in
different DC (for example 1. screan DC-LogPixelPerInch=96 ; 2. printer
DC-LogPixelPerInch=300 ; 3. . printer DC-LogPixelPerInch=1024)

Font size is 10, created by CreateFontIndirect(DC, LOGFONT)
1. LOGFONT.LfHeight := 13 ( -(10*96/72) = 13.3333...)
2. LOGFONT.LfHeight := 42 ( -(10*300/72) = 41.666...)
3. LOGFONT.LfHeight := 142 ( -(10*1024/72) = 142.222.)

What do you think this question has to do with the C++ language? It seems to
be a Windows programming question, so ask it in a Windows programming group.
for instance.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,113
Messages
2,570,690
Members
47,269
Latest member
VitoYwo03

Latest Threads

Top