Show same text in different DC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pimpirev

    Show same text in different DC


    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 CreateFontIndir ect(DC, LOGFONT)
    1. LOGFONT.LfHeigh t := 13 ( -(10*96/72) = 13.3333...)
    2. LOGFONT.LfHeigh t := 42 ( -(10*300/72) = 41.666...)
    3. LOGFONT.LfHeigh t := 142 ( -(10*1024/72) = 142.222…)

    --
    Posted via http://dbforums.com
  • John Harrison

    #2
    Re: Show same text in different DC


    "Pimpirev" <member12878@db forums.com> wrote in message
    news:3104658.10 58081181@dbforu ms.com...[color=blue]
    >
    > 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 CreateFontIndir ect(DC, LOGFONT)
    > 1. LOGFONT.LfHeigh t := 13 ( -(10*96/72) = 13.3333...)
    > 2. LOGFONT.LfHeigh t := 42 ( -(10*300/72) = 41.666...)
    > 3. LOGFONT.LfHeigh t := 142 ( -(10*1024/72) = 142.222.)
    >[/color]

    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.
    news:comp.os.ms-windows.program mer.win32 for instance.

    john


    Comment

    Working...