[hb-info] Format
This commit is contained in:
parent
0b7d3952ba
commit
9c62022ded
|
@ -473,7 +473,7 @@ struct info_t
|
||||||
printf ("Metric %c%c%c%c: ", HB_UNTAG (tag));
|
printf ("Metric %c%c%c%c: ", HB_UNTAG (tag));
|
||||||
|
|
||||||
if (hb_ot_metrics_get_position (font, tag, &position))
|
if (hb_ot_metrics_get_position (font, tag, &position))
|
||||||
printf ("%d\n", position);
|
printf ("%d \n", position);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hb_ot_metrics_get_position_with_fallback (font, tag, &position);
|
hb_ot_metrics_get_position_with_fallback (font, tag, &position);
|
||||||
|
@ -518,7 +518,7 @@ struct info_t
|
||||||
printf ("Baseline %c%c%c%c: ", HB_UNTAG (tag));
|
printf ("Baseline %c%c%c%c: ", HB_UNTAG (tag));
|
||||||
|
|
||||||
if (hb_ot_layout_get_baseline (font, tag, direction, script_tag, language_tag, &position))
|
if (hb_ot_layout_get_baseline (font, tag, direction, script_tag, language_tag, &position))
|
||||||
printf ("%d\n", position);
|
printf ("%d \n", position);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hb_ot_layout_get_baseline_with_fallback (font, tag, direction, script_tag, language_tag, &position);
|
hb_ot_layout_get_baseline_with_fallback (font, tag, direction, script_tag, language_tag, &position);
|
||||||
|
@ -630,9 +630,13 @@ struct info_t
|
||||||
&v);
|
&v);
|
||||||
any_fallback = fallback = true;
|
any_fallback = fallback = true;
|
||||||
}
|
}
|
||||||
printf ("%c%c%c%c: %-33s %d", HB_UNTAG(entries[i].value), entries[i].value_nick, v);
|
printf ("%c%c%c%c", HB_UNTAG(entries[i].value));
|
||||||
|
if (verbose)
|
||||||
|
printf (": %-33s", entries[i].value_nick);
|
||||||
|
printf (" %d ", v);
|
||||||
|
|
||||||
if (fallback)
|
if (fallback)
|
||||||
printf (" *");
|
printf ("*");
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue