From 4fabd5abf0d3fba825de143b44e06ddcdb3ac361 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 10 Mar 2013 18:17:28 +0800 Subject: [PATCH] fix #100 --- src/util/ffw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/util/ffw.c b/src/util/ffw.c index d10a85e..706cbd1 100644 --- a/src/util/ffw.c +++ b/src/util/ffw.c @@ -260,12 +260,14 @@ void ffw_cidflatten(void) SFFlatten(cur_fv->sf->cidmaster); } +/* + * There is no check if a glyph with the same unicode exists! + */ void ffw_add_empty_char(int32_t unicode, int width) { - // append the new char to Enc SplineChar * sc = SFMakeChar(cur_fv->sf, cur_fv->map, cur_fv->map->enccount); - sc->unicodeenc = unicode; - sc->width = width; + SCSetMetaData(sc, sc->name, unicode, sc->comment); + SCSynchronizeWidth(sc, width, sc->width, cur_fv); } int ffw_get_em_size(void)