summaryrefslogtreecommitdiff
path: root/src/lib/hints.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-27 00:25:40 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-27 00:25:40 +0000
commitf77ec143719c86ddbf098bff6d19fe2a159b8c3e (patch)
tree0eef7caeaff253a5d6b4c8f65cb5a0fc327d2f7c /src/lib/hints.cc
parent731eb4282fc1dd8e2ac054879db16647757a766a (diff)
Remove specification of italic/bold fonts (#1451); synthesis will be used instead.v2.13.110
Diffstat (limited to 'src/lib/hints.cc')
-rw-r--r--src/lib/hints.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc
index a517470d5..d3ad9dd23 100644
--- a/src/lib/hints.cc
+++ b/src/lib/hints.cc
@@ -102,11 +102,9 @@ Hints::thread ()
BOOST_FOREACH (shared_ptr<Content> i, content) {
BOOST_FOREACH (shared_ptr<TextContent> j, i->text) {
BOOST_FOREACH (shared_ptr<Font> k, j->fonts()) {
- for (int l = 0; l < FontFiles::VARIANTS; ++l) {
- optional<boost::filesystem::path> const p = k->file (static_cast<FontFiles::Variant>(l));
- if (p && boost::filesystem::file_size (p.get()) >= (640 * 1024)) {
- big_font_files = true;
- }
+ optional<boost::filesystem::path> const p = k->file ();
+ if (p && boost::filesystem::file_size(p.get()) >= (640 * 1024)) {
+ big_font_files = true;
}
}
}