ref: 00f3bc7db52b6ebd414ae354d599cf16a2965df2
parent: afe9aa1eb04787b6407952d5696a6bfeb9f65f20
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Jul 14 14:01:48 EDT 2024
disambiguate empty glyphs in -G pretty dump
--- a/plan9/test.c
+++ b/plan9/test.c
@@ -6,8 +6,8 @@
typedef struct Image Image;
struct Image {
- int h;
int w;
+ int h;
u8int *b;
};
@@ -129,7 +129,8 @@
if(im[i].b == nil)
sysfatal("%r");
}else if(ppem <= 0){
- Bprint(out.aux, "%d (%s):\n", i, g->simple ? "simple" : "component");
+ Bprint(out.aux, "%d (%s):\n", i,
+ g->simple ? "simple" : (g->component ? "component" : "empty"));
print_Glyf(&out, indentΔ, o, g);
}
free(g);
--- a/unix/test.c
+++ b/unix/test.c
@@ -156,7 +156,8 @@
if(im[i].b == NULL)
errx(1, "glyph %d: %s", i, otferrstr());
}else if(ppem <= 0){
- fprintf(out.aux, "%d (%s):\n", i, g->simple ? "simple" : "component");
+ fprintf(out.aux, "%d (%s):\n", i,
+ g->simple ? "simple" : (g->component ? "component" : "empty"));
print_Glyf(&out, indentΔ, o, g);
}
free(g);