From: Daniel Glassey (danglassey-abi@ntlworld.com)
Date: Sat Oct 11 2003 - 08:57:02 EDT
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
(apologies if this is a duplicate as I don't think the first copy got
through)
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 : Sat Oct 11 2003 - 09:13:27 EDT