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,

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to