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]