From 356ee117f155ead6c6d6a1efada170b22a46f634 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 19 Sep 2012 03:50:00 +0800 Subject: [PATCH] fix asc/dsec, but breaking '_', need create glyph for ' ' --- share/base.css | 1 + src/ffw.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/share/base.css b/share/base.css index 533a67f..aee1193 100644 --- a/share/base.css +++ b/share/base.css @@ -41,6 +41,7 @@ span { } ._ { color:transparent; + font-size:1px; } ::selection{ background: rgba(127,255,255,1); diff --git a/src/ffw.c b/src/ffw.c index 24453ee..5e228c1 100644 --- a/src/ffw.c +++ b/src/ffw.c @@ -216,6 +216,7 @@ void ffw_metric(double * ascent, double * descent) SplineFontFindBounds(sf, &bb); struct pfminfo * info = &sf->pfminfo; + /* //debug printf("bb %lf %lf\n", bb.maxy, bb.miny); printf("_ %d %d\n", sf->ascent, sf->descent); @@ -225,6 +226,7 @@ void ffw_metric(double * ascent, double * descent) printf("%d %d\n", info->typoascent_add, info->typodescent_add); printf("hhead %d %d\n", info->hhead_ascent, info->hhead_descent); printf("%d %d\n", info->hheadascent_add, info->hheaddescent_add); + */ int em = sf->ascent + sf->descent; @@ -258,6 +260,9 @@ void ffw_metric(double * ascent, double * descent) info->typodescent_add = 0; info->hheaddescent_add = 0; + info->os2_typolinegap = 0; + info->linegap = 0; + info->pfmset = 1; sf->changed = true; }