ref: 9e966c54e959a01244ae56e8acdf1b8d9097f1d6
parent: 0c9e70d56909265221c13f68a1ef010b1514c5e1
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Aug 3 18:35:06 EDT 2014
tr: handle invalid fonts in .ff
--- a/tr.c
+++ b/tr.c
@@ -464,7 +464,7 @@
return;
fn = dev_font(dev_pos(args[1]));
for (i = 2; i <= NARGS; i++)
- if (args[i] && args[i][0] && args[i][1])
+ if (fn && args[i] && args[i][0] && args[i][1])
font_feat(fn, args[i] + 1, args[i][0] == '+');
}