1
## Description: set FC_WEIGHT_MEDIUM when the font name contains "Medium"
2
## Author: Nobuto MURATA <nobuto@nobuto-murata.org>
3
## Bug-Ubuntu: https://launchpad.net/bugs/769827
4
## Bug: https://bugs.freedesktop.org/show_bug.cgi?id=36474
6
Index: poppler-0.16.4/poppler/GlobalParams.cc
7
===================================================================
8
--- poppler-0.16.4.orig/poppler/GlobalParams.cc 2011-04-19 21:13:10.662154002 +0900
9
+++ poppler-0.16.4/poppler/GlobalParams.cc 2011-04-19 21:13:00.102154000 +0900
11
slant = FC_SLANT_ITALIC;
12
if (findModifier(modifiers, "Bold", &start))
13
weight = FC_WEIGHT_BOLD;
14
+ if (findModifier(modifiers, "Medium", &start))
15
+ weight = FC_WEIGHT_MEDIUM;
16
if (findModifier(modifiers, "Light", &start))
17
weight = FC_WEIGHT_LIGHT;
18
if (findModifier(modifiers, "Condensed", &start))