[PATCH] mkfontscale: Support FontForge weight designations.

Jeremy Huddleston jeremyhu at apple.com
Tue Oct 4 20:23:14 PDT 2011


reviewed and pushed
   d429321..8ee3b3f  master -> master

On Oct 3, 2011, at 12:52 PM, Maxim Iorsh wrote:

> Fontforge uses 'ExtraLight' and 'Heavy' weights in Type 1 fonts, which
> should be understood by mkfontscale. Other FontForge designations are
> already addressed.
> 
> Signed-off-by: Maxim Iorsh <iorsh at users.sourceforge.net>
> ---
> mkfontscale.c |    4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/mkfontscale.c b/mkfontscale.c
> index 31553cb..49bbe77 100644
> --- a/mkfontscale.c
> +++ b/mkfontscale.c
> @@ -426,6 +426,8 @@ t1Weight(char *weight)
>         return NULL;
>     if(strcmp(weight, "Thin") == 0)
>         return "thin";
> +    if(strcmp(weight, "ExtraLight") == 0) /* FontForge uses this for 200*/
> +        return "extralight";
>     if(strcmp(weight, "Light") == 0)
>         return "light";
>     if(strcmp(weight, "Regular") == 0)
> @@ -446,6 +448,8 @@ t1Weight(char *weight)
>         return "semibold";
>     else if(strcmp(weight, "Bold") == 0)
>         return "bold";
> +    else if(strcmp(weight, "Heavy") == 0) /* FontForge uses this for 800*/
> +        return "extrabold";
>     else if(strcmp(weight, "Black") == 0)
>         return "black";
>     else {
> -- 
> 1.7.3.4
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 

---
Jeremy Huddleston

Rebuild Sudan
 - Board of Directors
 - http://www.rebuildsudan.org

Berkeley Foundation for Opportunities in Information Technology
 - Advisory Board
 - http://www.bfoit.org



More information about the xorg-devel mailing list