freetype
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[ft] Kerning not working
From
:
Akatray
Subject
:
[ft] Kerning not working
Date
:
Tue, 10 Jul 2012 02:19:39 +0300
Not all combinations returns kerning values.
Example: AV
Is this my code fault?
if (this->m_Kerning == true)
{
for (unsigned k = 0; k < CharMap.size (); ++k)
{
FT_Vector Correction;
FT_Get_Kerning (FreeType2Face, static_cast<unsigned int>(CharMap [k]), CurrentIndex, FT_KERNING_UNFITTED, &Correction);
this->m_KerningData [CharMap [i]][CharMap [k]] = (Correction.x >> 6);
if (this->m_KerningData [CharMap [i]][CharMap [k]] < 0) std::cout << CharMap [k] << CharMap [i] << "(" << this->m_KerningData [CharMap [i]][CharMap [k]] << "), ";
}
}
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[ft] Kerning not working
,
Akatray
<=
Re: [ft] Kerning not working
,
Werner LEMBERG
,
2012/07/19
Prev by Date:
Re: [ft] Freetype FT_Request_Size() crashes
Next by Date:
[ft] ttfautohint 0.91 has been released
Previous by thread:
Re: [ft] Rendering chinese characters
Next by thread:
Re: [ft] Kerning not working
Index(es):
Date
Thread