freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Outline decompose scaling


From: Michael IV
Subject: Re: [ft] Outline decompose scaling
Date: Wed, 18 Jun 2014 21:53:27 +0300

Yeah!I finally figured it out. shift and delta were not set. But now I don't understand why in the examples number 64 is used to downscale the coordinates?When all  I need is to set pixel size for glyph.
I mean how do I set my text to be of size 20px when using the outlines?Given that the resolution is 72 dpi.  Should I  divide 72 by 2048 and use that product to scale down the path points?


On Wed, Jun 18, 2014 at 9:41 PM, Werner LEMBERG <address@hidden> wrote:

> Hi All. I am decomposing outline of a glyph to paths.But the points
> have huge coordinated even after division by 64.
>
> Every point I am getting from the path is by default in a range of
> ~984036148 .How do I convert such a number to normal font size?

You seem to have an error somewhere – without seeing any details we
can just have a look into our crystal balls...

Please start with the examples from the tutorial (at the very end),
then adapt this to your code.


    Werner



--
Michael Ivanov
Graphics Software
onlygraphix.com
Tel:+972 54 4962254


reply via email to

[Prev in Thread] Current Thread [Next in Thread]