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

From: Daniel Glassey (danglassey-abi@ntlworld.com)
Date: Sat Oct 11 2003 - 04:16:37 EDT

  • Next message: Torstein Sunde: "Re: Error compiling enchant 1.0 RPM on Red Hat 9"

    Hi,
    Actually, didn't get that completely right, we need to just delete the
    lf.lfHeight = abs(lf.lfHeight) ...
    line from getguifont

    It adjusts the initial font size depending on zoom and that just messes
    things up - after deleting it it works fine on all zooms.

    Thanks,
    Daniel

    Dom Lachowicz wrote:

    > Fixes in this vein committed.
    >
    > Dom
    >
    > --- Daniel Glassey <danglassey-abi@ntlworld.com>
    > wrote:
    >
    >>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 : Sun Oct 12 2003 - 06:30:19 EDT