Re: [Fwd: Re: Test printing of the binary and report the results please.]

From: Daniel Glassey (danglassey-abi@ntlworld.com)
Date: Fri Oct 10 2003 - 17:49:14 EDT

  • Next message: Dom Lachowicz: "Re: [Fwd: Re: Test printing of the binary and report the results please.]"

    Dom Lachowicz wrote:

    > Could someone with win32 skillz fix the ruler bug now
    > please? It should just be a matter of getting
    > 'getGUIFont()' done properly.

    changes to gr_Win32Graphics.cpp seem to work:

    GR_Win32Font::GR_Win32Font(LOGFONT & lf)
    : m_oldHDC(0),
            m_layoutFont (0),
            m_defaultCharWidth(0),
            m_tm(TEXTMETRIC()),
            m_iHeight(abs(lf.lfHeight))
    {
            m_layoutFont = CreateFontIndirect(&lf); // this is what we see to start
    with
            insertFontInCache (abs(lf.lfHeight), m_layoutFont);

    In
    GR_Font* GR_Win32Graphics::getGUIFont(void)
    ...
    lf.lfHeight = abs(lf.lfHeight) * getZoomPercentage() / 100;

    Regards,
    Daniel



    This archive was generated by hypermail 2.1.4 : Fri Oct 10 2003 - 18:05:33 EDT