aboutsummaryrefslogtreecommitdiff
path: root/cpp/src/sample/chromium
AgeCommit message (Collapse)Author
2019-09-16Restore space before "Regular" font name suffixjfkthame
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.)
2019-01-08Fix the incompatible type of UChar and char16_tVictor Chang
UChar is not always char16_t in some platforms. In some cases, it's wchar_t or uint16_t. Use std::basic_string<UChar> to avoid std::u16string.
2019-01-03Replace icu::UnicodeString with ICU C API and std::u16stringVictor Chang
When sfntly depends on ICU4C a shared library, the shared library may not provide stable C++ ABI. Use ICU C API instead.
2017-04-13Cleanup random bits of code.Lei Zhang
- Simplify iterator usage. - Use std::numeric_limits in a couple places. - Remove unused FontFactory::SetSerializationTableOrdering(). - Mark more variables/methods as const. No behavior changes.
2017-03-27Check for integer overflow in SetupGlyfBuilders.Lei Zhang
Fixes https://crbug.com/659936
2017-03-10Fix 'INCLUDE WHAT YOU USE' violation (#73)jungshik
UnicodeString and U_* are used without including any ICU headers. This used to work with ICU 58.x, but not any more with ICU 59-to-be. This change is necessary for upgrading Chrome's ICU to 59.x. ( https://crbug.com/699469 ) Will fix #72
2017-02-15Sfntly C++ CleanupHal Canary
sfntly/c++ defines several confusing typedefs for standard types. I used sed to change them back to the standard types. This will make it easer for someone new to this codebase (i.e. everbody) to hack on it. Also, the CMakeLists.txt file assumes you use either GCC or MSVC. I use Clang, so I modified it to give Clang the same options as GCC. Also, the unit tests assume that googletest is located in `cpp/ext/gtest`. I added this to a .gitignore file so that I can symlink to `..../googletest/googletest`.
2016-07-26SfntlyWrapper::SubsetFont takes TTC indexHal Canary
2013-11-05Issue 19330043: fix QNX buildarthurhsu
Patch by: efidler1@blackberry.com
2012-07-09Gracefully fail when TTF name table contains a zero-length name.arthurhsu
Backport from b/6733065.
2012-02-28Work around Apple MacOS X Lion AppleMyungjo font bug.arthurhsu
2011-12-12Move Chromium subsetter code to sample, update CMakeLists accordingly.arthurhsu
Remove unused const in font.h.
2011-10-18Update to 10-12-11 snapshotarthurhsu
Created new chrome_subsetter program to test font subsetter used in Chromium Fix several porting bugs in previous CL