fix khmer problem
This commit is contained in:
parent
9088ae49e1
commit
be98fb733d
1 changed files with 5 additions and 2 deletions
|
@ -133,10 +133,13 @@ static void shape_text(text_line & line,
|
|||
// Check if all glyphs are valid.
|
||||
for (unsigned i=0; i<num_glyphs; ++i)
|
||||
{
|
||||
if (glyphs[i].codepoint && !glyphinfos[i].glyph.codepoint)
|
||||
if (glyphs[i].codepoint)
|
||||
{
|
||||
if (!glyphinfos[i].glyph.codepoint)
|
||||
{
|
||||
++valid_glyphs;
|
||||
}
|
||||
glyphinfos[i] = { face, glyphs[i], positions[i] };
|
||||
++valid_glyphs;
|
||||
}
|
||||
}
|
||||
if (valid_glyphs < num_glyphs && (pos < num_faces))
|
||||
|
|
Loading…
Add table
Reference in a new issue