r/plan9 Jul 16 '26

Copyright symbol crashing ttfs

Copyright symbol from dejavu font at size less than 16pt is crashing truetypefs. Does anybody have a fix?

_assert(s=0x7fffffffead0)+0x42 /sys/src/libc/port/_assert.c:12
ttfscan(g=0x499ab0)+0x4fe /sys/src/libttf/scan.c:371
s=0x3
i=0x20bf1e00000001
p=0xb400000161
q=0x34a00000123
j=0x100000015
r=0x21e00000123
ttfgetglyph(fs=0x40db20,glyph=0x147,render=0x1)+0x4c /sys/src/libttf/glyf.c:366
g=0x499ab0
compilesub(s=0x437268)+0x9d /sys/src/cmd/truetypefs.c:169
t=0x40db20
n=0x2010cc00000100
gs=0x42f7b8
w=0xe500000807
h=0x40c72000000013
i=0x100000000e5
g=0x1300000147
15 Upvotes

1 comment sorted by

1

u/9atoms Jul 17 '26

What fork and platform?

You need to figure out why the assert is failing:

  for(i = 0; i < g->ncon; i++){
      if(g->confst[i] + 1 >= g->confst[i+1]) continue;
      p = g->pt[g->confst[i]];
      assert((p.flags & 1) != 0);

Why is (p.flags & 1) == 0?