Exemple #1
0
static void print_font_properties(const GP_FontFace *font)
{
	fprintf(stderr, "Font '%s %s' properties:\n",
	                GP_FontFamily(font), GP_FontStyle(font));
	fprintf(stderr, "    Height: ascend: %d, descend: %d\n",
			GP_FontAscend(font), GP_FontDescend(font));
	fprintf(stderr, "    Max advance_x: %u\n",
	                GP_FontMaxAdvanceX(font));
	fprintf(stderr, "    Glyph bitmap format: %s\n",
	                glyph_bitmap_format_name(font->glyph_bitmap_format));
	fprintf(stderr, "    Bounding box width: %d, heigth: %d\n",
	                GP_FontMaxWidth(font), GP_FontHeight(font));

	print_character_metadata(font, 'a');
	print_character_metadata(font, 'm');
	print_character_metadata(font, '0');
}
Exemple #2
0
static void print_font_properties(const gp_font_face *font)
{
	fprintf(stderr, "Font '%s %s' properties:\n",
	                gp_font_family(font), gp_font_style(font));
	fprintf(stderr, "    Height: ascend: %d, descend: %d\n",
			gp_font_ascend(font), gp_font_descend(font));
	fprintf(stderr, "    Max advance_x: %u\n",
	                gp_font_max_advance_x(font));
	fprintf(stderr, "    Glyph bitmap format: %s\n",
	                glyph_bitmap_format_name(font->glyph_bitmap_format));
	fprintf(stderr, "    Bounding box width: %d, heigth: %d\n",
	                gp_font_max_width(font), gp_font_height(font));

	print_character_metadata(font, 'a');
	print_character_metadata(font, 'm');
	print_character_metadata(font, '0');
}