commit | 90e6b1885d44c33b1da9477a85dc7dd066acd33f | [log] [tgz] |
---|---|---|
author | Seigo Nonaka <nona@google.com> | Tue Nov 22 18:10:57 2016 +0900 |
committer | Seigo Nonaka <nona@google.com> | Thu Jan 12 18:26:46 2017 +0900 |
tree | b53918d9b803474503110a26ef7f4fc1086c2595 | |
parent | dfab450f815bc7f93f4760041078724d2aa19eca [diff] |
Introduce createCollectionWithVariation. This lays the groundwork for variation settings support. Since we should regard different variations of a font as different fonts, we need to create new typefaces. To reuse the same instance of MinikinFont, as much as possible, FontFamily::createFamilyWithVariation now reuses an existence instance, while incrementing the reference count. Test: minikin_tests Bug: 33062398 Change-Id: I08e9b74192f8af1d045f1276498fa4e60d73863e