diff options
author | jfkthame <jfkthame@gmail.com> | 2019-09-16 16:52:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 16:52:48 +0100 |
commit | 018113eea46bb63865d7311371b5eb72433992f3 (patch) | |
tree | 81ad2950dcc59861e86cdf4cfc958c20938111b7 | |
parent | 48312c98332a4608572459dc71584c2a9dbb1792 (diff) | |
download | sfntly-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.cc | 2 |
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; |