freetype
[Top][All Lists]
Advanced

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

Re: [ft] Off by one error in freetype (or in programmer?)


From: Werner LEMBERG
Subject: Re: [ft] Off by one error in freetype (or in programmer?)
Date: Thu, 05 Apr 2018 13:08:40 +0200 (CEST)

>> Just for completeness: Bitmap cell 0 is from coordinate 0 to 1, bitmap
>> cell 1 is from 1 to 2, ..., bitmap cell 655 is from 655 to 656.
> 
> I'm not sure I understand this - are you saying that the
> rasterization goes *between* the rows, not on them?  i.e., for a
> glyph which hypothetically ranges from (1,0) to (1,2) I am expecting
> 
> 2  *
> 1  *
> 0  *
> 
> but freetype is giving me
> 
> 2
>    *
> 1
>    *
> 0
> 
> Is that it?

Yes.  Pixels *do* have dimensions :-)

In TrueType, for example, all glyphs are shifted by (-1/2,-1/2)
internally to align pixel centers with the grid.


    Werner

reply via email to

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