[autofit] Minor fix.
* src/autofit/afcjk.c (af_cjk_metrics_init_widths), src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling of alternative standard characters. This also fixes a compilation warning in non-debug mode.
This commit is contained in:
parent
ee3778d3d7
commit
a8772918a3
|
@ -1,3 +1,12 @@
|
||||||
|
2014-02-04 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[autofit] Minor fix.
|
||||||
|
|
||||||
|
* src/autofit/afcjk.c (af_cjk_metrics_init_widths),
|
||||||
|
src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling
|
||||||
|
of alternative standard characters.
|
||||||
|
This also fixes a compilation warning in non-debug mode.
|
||||||
|
|
||||||
2014-02-03 Werner Lemberg <wl@gnu.org>
|
2014-02-03 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[cff] Fix Savannah bug #41363.
|
[cff] Fix Savannah bug #41363.
|
||||||
|
|
|
@ -104,40 +104,39 @@
|
||||||
FT_UInt32 standard_char;
|
FT_UInt32 standard_char;
|
||||||
|
|
||||||
|
|
||||||
|
standard_char = script_class->standard_char1;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char1,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
{
|
{
|
||||||
if ( script_class->standard_char2 )
|
if ( script_class->standard_char2 )
|
||||||
{
|
{
|
||||||
|
standard_char = script_class->standard_char2;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char2,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
{
|
{
|
||||||
if ( script_class->standard_char3 )
|
if ( script_class->standard_char3 )
|
||||||
{
|
{
|
||||||
|
standard_char = script_class->standard_char3;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char3,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
else
|
|
||||||
standard_char = script_class->standard_char3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
standard_char = script_class->standard_char2;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
standard_char = script_class->standard_char1;
|
goto Exit;
|
||||||
|
}
|
||||||
|
|
||||||
FT_TRACE5(( "standard character: U+%04lX (glyph index %d)\n",
|
FT_TRACE5(( "standard character: U+%04lX (glyph index %d)\n",
|
||||||
standard_char, glyph_index ));
|
standard_char, glyph_index ));
|
||||||
|
|
|
@ -98,40 +98,39 @@
|
||||||
* numerals.
|
* numerals.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
standard_char = script_class->standard_char1;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char1,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
{
|
{
|
||||||
if ( script_class->standard_char2 )
|
if ( script_class->standard_char2 )
|
||||||
{
|
{
|
||||||
|
standard_char = script_class->standard_char2;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char2,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
{
|
{
|
||||||
if ( script_class->standard_char3 )
|
if ( script_class->standard_char3 )
|
||||||
{
|
{
|
||||||
|
standard_char = script_class->standard_char3;
|
||||||
af_get_char_index( &metrics->root,
|
af_get_char_index( &metrics->root,
|
||||||
script_class->standard_char3,
|
standard_char,
|
||||||
&glyph_index,
|
&glyph_index,
|
||||||
&y_offset );
|
&y_offset );
|
||||||
if ( glyph_index == 0 )
|
if ( !glyph_index )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
else
|
|
||||||
standard_char = script_class->standard_char3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
standard_char = script_class->standard_char2;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
standard_char = script_class->standard_char1;
|
goto Exit;
|
||||||
|
}
|
||||||
|
|
||||||
FT_TRACE5(( "standard character: U+%04lX (glyph index %d)\n",
|
FT_TRACE5(( "standard character: U+%04lX (glyph index %d)\n",
|
||||||
standard_char, glyph_index ));
|
standard_char, glyph_index ));
|
||||||
|
|
Loading…
Reference in New Issue