shithub: neatpost

Download patch

ref: 8f5f11d521897752ff40bad2648c18a970f1536e
parent: a11fb8c888ac092c545f11f38c3da431ffc7a783
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Sep 8 12:25:47 EDT 2013

out: add unicode aliases for fixlist[]

--- a/out.c
+++ b/out.c
@@ -81,7 +81,13 @@
 	char *name;
 	int dh, dv;
 } fixlist[] = {
-	{"br", -5, 15},
+	{"", -5, 4},
+	{"", 20, 0},
+	{"", 20, 0},
+	{"", -11, 0},
+	{"", -11, 0},
+	{"", -50, 0},
+	{"br", -5, 4},
 	{"lc", 20, 0},
 	{"lf", 20, 0},
 	{"rc", -11, 0},
@@ -95,7 +101,7 @@
 	int i;
 	*dh = 0;
 	*dv = 0;
-	if (!strcmp("S", fn->name)) {
+	if (!strcmp("S", fn->name) && !strcmp("Symbol", fn->fontname)) {
 		for (i = 0; i < LEN(fixlist); i++) {
 			if (!strcmp(fixlist[i].name, g->name)) {
 				*dh = charwid(fixlist[i].dh, o_s);