From c2fcde498a8b7dec012a8da8ffa78f72a65ac50d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 15 Sep 2017 15:03:46 -0400 Subject: [PATCH] [varfonts] Map from OpenType to Fontconfig weight values Oops. --- src/fcfreetype.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 0d032087..cf1e1969 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1262,18 +1262,22 @@ FcFreeTypeQueryFace (const FT_Face face, { case FT_MAKE_TAG ('w','g','h','t'): elt = FC_WEIGHT; + min_value = FcWeightFromOpenType (min_value); + max_value = FcWeightFromOpenType (max_value); variable = variable_weight = FcTrue; weight = 0; /* To stop looking for weight. */ break; case FT_MAKE_TAG ('w','d','t','h'): elt = FC_WIDTH; + /* Values in 'wdth' match Fontconfig FC_WIDTH_* scheme directly. */ variable = variable_width = FcTrue; width = 0; /* To stop looking for width. */ break; case FT_MAKE_TAG ('o','p','s','z'): elt = FC_SIZE; + /* Values in 'opsz' match Fontconfig FC_SIZE, both are in points. */ variable = variable_size = FcTrue; break; } -- GitLab