* src/*: More fixes for using a '\n' in FT_TRACE
and FT_ERROR
.
This commit is contained in:
parent
015a9b8d8f
commit
272ae5ee2a
@ -1,3 +1,7 @@
|
||||
2020-12-07 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`.
|
||||
|
||||
2020-12-07 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
*/*: s/FT_LOGGING/FT_DEBUG_LOGGING/.
|
||||
|
@ -1274,29 +1274,28 @@
|
||||
|
||||
if ( dist == 0 )
|
||||
{
|
||||
FT_TRACE5((
|
||||
"af_latin_metrics_scale_dim:"
|
||||
" x height alignment (style `%s'):\n"
|
||||
" "
|
||||
" vertical scaling changed from %.5f to %.5f (by %ld%%)\n"
|
||||
"\n",
|
||||
af_style_names[metrics->root.style_class->style],
|
||||
scale / 65536.0,
|
||||
new_scale / 65536.0,
|
||||
( fitted - scaled ) * 100 / scaled ));
|
||||
FT_TRACE5(( "af_latin_metrics_scale_dim:"
|
||||
" x height alignment (style `%s'):\n",
|
||||
af_style_names[metrics->root.style_class->style] ));
|
||||
FT_TRACE5(( " "
|
||||
" vertical scaling changed"
|
||||
" from %.5f to %.5f (by %ld%%)\n",
|
||||
scale / 65536.0,
|
||||
new_scale / 65536.0,
|
||||
( fitted - scaled ) * 100 / scaled ));
|
||||
FT_TRACE5(( "\n" ));
|
||||
|
||||
scale = new_scale;
|
||||
}
|
||||
#ifdef FT_DEBUG_LEVEL_TRACE
|
||||
else
|
||||
{
|
||||
FT_TRACE5((
|
||||
"af_latin_metrics_scale_dim:"
|
||||
" x height alignment (style `%s'):\n"
|
||||
" "
|
||||
" excessive vertical scaling abandoned\n"
|
||||
"\n",
|
||||
af_style_names[metrics->root.style_class->style] ));
|
||||
FT_TRACE5(( "af_latin_metrics_scale_dim:"
|
||||
" x height alignment (style `%s'):\n",
|
||||
af_style_names[metrics->root.style_class->style] ));
|
||||
FT_TRACE5(( " "
|
||||
" excessive vertical scaling abandoned\n" ));
|
||||
FT_TRACE5(( "\n" ));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -105,10 +105,11 @@ FT_BEGIN_HEADER
|
||||
FT_Byte* pp = (FT_Byte*)_size ## _p; \
|
||||
\
|
||||
\
|
||||
FT_TRACE3(( "\n" \
|
||||
"Invalid offset to optional table `%s'" \
|
||||
" set to zero.\n" \
|
||||
"\n", #_size )); \
|
||||
FT_TRACE3(( "\n" )); \
|
||||
FT_TRACE3(( "Invalid offset to optional table `%s'" \
|
||||
" set to zero.\n", \
|
||||
#_size )); \
|
||||
FT_TRACE3(( "\n" )); \
|
||||
\
|
||||
_size = pp[0] = pp[1] = 0; \
|
||||
} \
|
||||
@ -127,10 +128,11 @@ FT_BEGIN_HEADER
|
||||
FT_Byte* pp = (FT_Byte*)_size ## _p; \
|
||||
\
|
||||
\
|
||||
FT_TRACE3(( "\n" \
|
||||
"Invalid offset to optional table `%s'" \
|
||||
" set to zero.\n" \
|
||||
"\n", #_size )); \
|
||||
FT_TRACE3(( "\n" )); \
|
||||
FT_TRACE3(( "Invalid offset to optional table `%s'" \
|
||||
" set to zero.\n", \
|
||||
#_size )); \
|
||||
FT_TRACE3(( "\n" )); \
|
||||
\
|
||||
_size = pp[0] = pp[1] = pp[2] = pp[3] = 0; \
|
||||
} \
|
||||
|
@ -1340,9 +1340,9 @@
|
||||
if ( decoder->glyph_names == 0 )
|
||||
#endif /* FT_CONFIG_OPTION_INCREMENTAL */
|
||||
{
|
||||
FT_ERROR((
|
||||
"cf2_interpT2CharString: (Type 1 seac)"
|
||||
" glyph names table not available in this font\n" ));
|
||||
FT_ERROR(( "cf2_interpT2CharString:\n" ));
|
||||
FT_ERROR(( " (Type 1 seac) glyph names table"
|
||||
" not available in this font\n" ));
|
||||
lastError = FT_THROW( Invalid_Glyph_Format );
|
||||
goto exit;
|
||||
}
|
||||
@ -1368,9 +1368,9 @@
|
||||
|
||||
if ( bchar_index < 0 || achar_index < 0 )
|
||||
{
|
||||
FT_ERROR((
|
||||
"cf2_interpT2CharString: (Type 1 seac)"
|
||||
" invalid seac character code arguments\n" ));
|
||||
FT_ERROR(( "cf2_interpT2CharString:\n" ));
|
||||
FT_ERROR(( " (Type 1 seac) invalid"
|
||||
" seac character code arguments\n" ));
|
||||
lastError = FT_THROW( Invalid_Glyph_Format );
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1852,11 +1852,10 @@
|
||||
FT_NEW_ARRAY( indices, woff2.num_tables ) )
|
||||
goto Exit;
|
||||
|
||||
FT_TRACE2((
|
||||
"\n"
|
||||
" tag flags transform origLen transformLen offset\n"
|
||||
" -----------------------------------------------------------\n" ));
|
||||
/* " XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX" */
|
||||
FT_TRACE2(( "\n" ));
|
||||
FT_TRACE2(( " tag flags transform origLen transformLen offset\n" ));
|
||||
FT_TRACE2(( " -----------------------------------------------------------\n" ));
|
||||
/* " XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX" */
|
||||
|
||||
for ( nn = 0; nn < woff2.num_tables; nn++ )
|
||||
{
|
||||
|
@ -1852,12 +1852,12 @@
|
||||
FT_TRACE5(( " %d: %.5f\n", i, coord / 65536.0 ));
|
||||
if ( coord > a->maximum || coord < a->minimum )
|
||||
{
|
||||
FT_TRACE1((
|
||||
"ft_var_to_normalized: design coordinate %.5f\n"
|
||||
" is out of range [%.5f;%.5f]; clamping\n",
|
||||
coord / 65536.0,
|
||||
a->minimum / 65536.0,
|
||||
a->maximum / 65536.0 ));
|
||||
FT_TRACE1(( "ft_var_to_normalized: design coordinate %.5f\n",
|
||||
coord / 65536.0 ));
|
||||
FT_TRACE1(( " is out of range [%.5f;%.5f];"
|
||||
" clamping\n",
|
||||
a->minimum / 65536.0,
|
||||
a->maximum / 65536.0 ));
|
||||
|
||||
if ( coord > a->maximum )
|
||||
coord = a->maximum;
|
||||
|
Loading…
Reference in New Issue
Block a user