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: Thu, 19 Jun 2014 16:31:02 +0300

What Flag should I use? 


On Thu, Jun 19, 2014 at 4:25 PM, Werner LEMBERG <address@hidden> wrote:

> So you say to get an outline by font size of 20px for DPI = 72 I
> have to do this:
>
>    err = FT_Set_Char_Size( faceHandle,64 * 20, 64 * 20, 72, 72 );

Yes.

> Here is my full code :
>
>   [...]
>   err = FT_Load_Glyph(faceHandle,
>                       glyphIndex,
>                       FT_LOAD_NO_BITMAP | FT_LOAD_NO_SCALE);
                                            ^^^^^^^^^^^^^^^^

Here's the error!  Using this flag makes FreeType return everything in
font units, completely ignoring any scaling done by
`FT_Set_Char_Size'.


    Werner



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


reply via email to

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