X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_afm_data.h;h=f301f21f7a13e1f10f63192a6f7a541eaa7cfb15;hb=ba6406d3684dcfc5e4dc4491f4f76562613bb0b6;hp=c3446e68d10e903f1cd47e35d8185020f17af87d;hpb=9393cbae80bfbe84837583b33fa5be93824686bf;p=rrdtool.git diff --git a/src/rrd_afm_data.h b/src/rrd_afm_data.h index c3446e6..f301f21 100644 --- a/src/rrd_afm_data.h +++ b/src/rrd_afm_data.h @@ -135,18 +135,7 @@ Implementation design: unicode char1, char2, resultingchar; } - Font-global info is stored in a - struct { - char *fullname; // e.g. "Futura Bold Oblique" - char *postscript_name; // e.g. "Futura-BoldOblique" - uint8 *widths; - sint16 *kerning_index; - sint8 *kerning_data; - uint16 *highchars_index; - uint16 highchars_count; - unicode *ligatures; - uint16 ligatures_count; - } + Font-global info is stored in a struct afm_fontinfo (see below). The highchars_index and ligatures structures are flattened to a simple array to avoid accidental padding between @@ -177,8 +166,8 @@ typedef const afm_sint16 afm_csint16; typedef const afm_unicode afm_cunicode; typedef struct afm_fontinfo { - const char *fullname; // e.g. "Futura Bold Oblique" - const char *postscript_name; // e.g. "Futura-BoldOblique" + const char *fullname; /* e.g. "Futura Bold Oblique" */ + const char *postscript_name; /* e.g. "Futura-BoldOblique" */ afm_cuint8 *widths; afm_csint16 *kerning_index; afm_cuint8 *kerning_data;