Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


I may not have been clear in what I was trying to convey.

The scaling I am talking about is set using
Format->Character->Position->Rotation/Scaling->Scale Width . The value
this field sets is called scaling factor.

What I want to know is how do we tell Windows that stretched glyphs
have to be drawn?
My understanding is that eventually a FontSelectPattern with width=0
is passed to ImplGetLogFontFromFontSelect of
vcl/win/gdi/salfont.cxx:1285. This function returns a non-zero lfWidth
LOGFONT. The width is set according to the criteria mentioned on the
msdn page. This 100% width is then scaled (scaled width =
100%width*scaling factor/100) and eventually
ImplGetLogFontFromFontSelect with FontSelectPattern object with the
scaled width is called. The function now returns a LOGFONT with a
lfWidth value == scaled width. This is how Windows draws the stretched
glyphs.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.