History

disambiguate empty glyphs in -G pretty dump

Sigrid Solveig Haflínudóttir committed 2 years ago

Commit 00f3bc71 parent afe9aa12 files · +5 −3Browse files

Unified · Split

2 files
  1. plan9/test.c +3 −2
  2. unix/test.c +2 −1
plan9/test.c+3−2
@@ -6,8 +6,8 @@ · 5 unmodified lines
66 typedef struct Image Image;
77
88 struct Image {
9− int h;
109 int w;
10+ int h;
1111 u8int *b;
1212 };
1313
@@ -129,7 +129,8 @@ main(int argc, char **argv) · 115 unmodified lines
129129 if(im[i].b == nil)
130130 sysfatal("%r");
131131 }else if(ppem <= 0){
132− Bprint(out.aux, "%d (%s):\n", i, g->simple ? "simple" : "component");
132+ Bprint(out.aux, "%d (%s):\n", i,
133+ g->simple ? "simple" : (g->component ? "component" : "empty"));
133134 print_Glyf(&out, indentΔ, o, g);
134135 }
135136 free(g);
unix/test.c+2−1
@@ -156,7 +156,8 @@ main(int argc, char **argv) · 155 unmodified lines
156156 if(im[i].b == NULL)
157157 errx(1, "glyph %d: %s", i, otferrstr());
158158 }else if(ppem <= 0){
159− fprintf(out.aux, "%d (%s):\n", i, g->simple ? "simple" : "component");
159+ fprintf(out.aux, "%d (%s):\n", i,
160+ g->simple ? "simple" : (g->component ? "component" : "empty"));
160161 print_Glyf(&out, indentΔ, o, g);
161162 }
162163 free(g);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t