[poppler] poppler/GlobalParams.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Jul 28 03:43:57 PDT 2011


 poppler/GlobalParams.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e2fa8a2ca8459d19c0f9dca445a2399b9a3d483d
Author: Koji Otani <sho at bbr.jp>
Date:   Thu Jul 28 12:43:57 2011 +0200

    Parse the "Medium" modifier when asking fontconfig for a font

diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index d951d4f..2e11bb0 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -1104,6 +1104,8 @@ static FcPattern *buildFcPattern(GfxFont *font)
     weight = FC_WEIGHT_BOLD;
   if (findModifier(modifiers, "Light", &start))
     weight = FC_WEIGHT_LIGHT;
+  if (findModifier(modifiers, "Medium", &start))
+    weight = FC_WEIGHT_MEDIUM;
   if (findModifier(modifiers, "Condensed", &start))
     width = FC_WIDTH_CONDENSED;
   


More information about the poppler mailing list