aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfkthame <jfkthame@gmail.com>2019-09-16 16:52:48 +0100
committerGitHub <noreply@github.com>2019-09-16 16:52:48 +0100
commit018113eea46bb63865d7311371b5eb72433992f3 (patch)
tree81ad2950dcc59861e86cdf4cfc958c20938111b7
parent48312c98332a4608572459dc71584c2a9dbb1792 (diff)
downloadsfntly-018113eea46bb63865d7311371b5eb72433992f3.tar.gz
Restore space before "Regular" font name suffix
This will revert to earlier behavior of HasName, by including a space when appending "Regular" to a base font name to synthesize a possible full name. (The space appears to have been inadvertently dropped during the migration to UCharString.)
-rw-r--r--cpp/src/sample/chromium/subsetter_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/sample/chromium/subsetter_impl.cc b/cpp/src/sample/chromium/subsetter_impl.cc
index d6c3216..5910591 100644
--- a/cpp/src/sample/chromium/subsetter_impl.cc
+++ b/cpp/src/sample/chromium/subsetter_impl.cc
@@ -133,7 +133,7 @@ bool HasName(const char* font_name, Font* font) {
UCharString font_string = ConvertFromUtf8(font_name);
if (font_string.empty())
return false;
- UCharString regular_suffix = ConvertFromUtf8("Regular");
+ UCharString regular_suffix = ConvertFromUtf8(" Regular");
UCharString alt_font_string = font_string;
alt_font_string += regular_suffix;