[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FT_Set_Char_Size()
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] FT_Set_Char_Size() |
Date: |
Wed, 21 Sep 2011 15:32:38 +0200 (CEST) |
> If any one could answer my (silly?) question. I need to use
> FT_Set_Char_Size() to set my character size at point 7,25 (verdana).
> Since this function accepts FT_F26dot6 as the char height and width, I
> am wondering how I can set point 7,25 without losing data
> if I cast 7,25 to FT_F26dot6.
As the name says, F26dot6 has 26 bits before the dot, and 6 bits after
it. Consequently, you simply multiply by 64 if you want to convert
into the F26dot6 format:
7.25 * 64 = 464
Werner