From: Keith Packard Date: Sun, 2 Jun 2002 20:52:06 +0000 (+0000) Subject: Add aspect ratio support to Xft and fontconfig X-Git-Tag: xf-4_2_99_1~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2a41214a25ec902ac79d0b16cc0bab4461b91e6b;p=fontconfig.git Add aspect ratio support to Xft and fontconfig --- diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index fa1d0e8..1d11553 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -1,5 +1,5 @@ /* - * $XFree86: xc/lib/fontconfig/fontconfig/fontconfig.h,v 1.13 2002/05/31 04:42:42 keithp Exp $ + * $XFree86: xc/lib/fontconfig/fontconfig/fontconfig.h,v 1.14 2002/05/31 23:21:24 keithp Exp $ * * Copyright © 2001 Keith Packard, member of The XFree86 Project, Inc. * @@ -49,6 +49,7 @@ typedef int FcBool; #define FC_SLANT "slant" /* Int */ #define FC_WEIGHT "weight" /* Int */ #define FC_SIZE "size" /* Double */ +#define FC_ASPECT "aspect" /* Double */ #define FC_PIXEL_SIZE "pixelsize" /* Double */ #define FC_SPACING "spacing" /* Int */ #define FC_FOUNDRY "foundry" /* String */ diff --git a/src/fcname.c b/src/fcname.c index c477149..26ef53e 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -1,5 +1,5 @@ /* - * $XFree86: xc/lib/fontconfig/src/fcname.c,v 1.3 2002/02/18 22:29:28 keithp Exp $ + * $XFree86: xc/lib/fontconfig/src/fcname.c,v 1.4 2002/05/29 22:07:33 keithp Exp $ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * @@ -34,6 +34,7 @@ static const FcObjectType _FcBaseObjectTypes[] = { { FC_SLANT, FcTypeInteger, }, { FC_WEIGHT, FcTypeInteger, }, { FC_SIZE, FcTypeDouble, }, + { FC_ASPECT, FcTypeDouble, }, { FC_PIXEL_SIZE, FcTypeDouble, }, { FC_SPACING, FcTypeInteger, }, { FC_FOUNDRY, FcTypeString, },