From 3f7653c2badeb426f938bafe1a82c2917b7ea125 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 15 Apr 2003 23:38:06 +0000 Subject: [PATCH] Fix unary operator parsing. Add floor, ceil, trunc and round unary operators --- fontconfig/fontconfig.h | 2 + fonts.dtd | 6 ++- src/Makefile.am | 2 +- src/fccfg.c | 71 ++++++++++++++++++++++++++ src/fcdbg.c | 20 ++++++++ src/fcint.h | 3 +- src/fcxml.c | 107 ++++++++++++++++++++++++++++++++-------- 7 files changed, 187 insertions(+), 24 deletions(-) diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index ca40834..2a26fa8 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -108,7 +108,9 @@ typedef int FcBool; #define FC_WEIGHT_SEMIBOLD FC_WEIGHT_DEMIBOLD #define FC_WEIGHT_BOLD 200 #define FC_WEIGHT_EXTRABOLD 205 +#define FC_WEIGHT_ULTRABOLD FC_WEIGHT_EXTRABOLD #define FC_WEIGHT_BLACK 210 +#define FC_WEIGHT_HEAVY FC_WEIGHT_BLACK #define FC_SLANT_ROMAN 0 #define FC_SLANT_ITALIC 100 diff --git a/fonts.dtd b/fonts.dtd index f7c2bc9..b89ffe3 100644 --- a/fonts.dtd +++ b/fonts.dtd @@ -91,7 +91,7 @@ + |plus|minus|times|divide|not|if|floor|ceil|round|trunc'>