freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] TTfautohint issues with small counters


From: vern adams
Subject: Re: [ft-devel] TTfautohint issues with small counters
Date: Thu, 31 May 2012 09:13:41 +0100

Applied patch and used the -x argument and that resolved the issue :)

Does it make sense to add the option (for bold fonts) to vary the ppem at which the x-height can be increased? Or should the default simply be < 20ppem for all fonts?

-v



On 31 May 2012, at 08:03, Werner LEMBERG wrote:

diff --git a/lib/talatin.c b/lib/talatin.c
index 7f3eba7..974df3e 100644
--- a/lib/talatin.c
+++ b/lib/talatin.c
@@ -553,7 +553,7 @@ ta_latin_metrics_scale_dim(TA_LatinMetrics metrics,

      threshold = 40;
      if ((scaler->flags & TA_SCALER_FLAG_INCREASE_X_HEIGHT)
-          && metrics->root.scaler.face->size->metrics.x_ppem < 15
+          && metrics->root.scaler.face->size->metrics.x_ppem < 20
          && metrics->root.scaler.face->size->metrics.x_ppem > 5)
        threshold = 52;

diff --git a/lib/taprep.c b/lib/taprep.c
index 85c19d9..e23bbd3 100644
--- a/lib/taprep.c
+++ b/lib/taprep.c
@@ -97,10 +97,10 @@ unsigned char PREP(align_top_c1) [] =
{

  /* this is for option `increase_x_height': */
-  /* apply much `stronger' rounding up of x height for 5 < PPEM < 15 */
+  /* apply much `stronger' rounding up of x height for 5 < PPEM < 20 */
  MPPEM,
  PUSHB_1,
-    15,
+    20,
  LT,
  MPPEM,
  PUSHB_1,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]