diff options
author | Seigo Nonaka <nona@google.com> | 2021-02-11 20:05:56 -0800 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2021-02-11 20:05:56 -0800 |
commit | cfc893feec49429a459401bf5c1d8a199c6134b9 (patch) | |
tree | 62621fd9c54cf2a8c4d73c2e7727fb4a7485adce | |
parent | b460df60ff9022fd65a89666a9aa01d0a8fa5e95 (diff) | |
download | minikin-cfc893feec49429a459401bf5c1d8a199c6134b9.tar.gz |
Add SourceID interface to MinikinFont
Bug: 179113771
Test: minikin_tests
Test: hwui_unit_tests
Test: atest CtsTextTestCases CtsGraphicsTestCases
Change-Id: I0783030e111b7c060f843903a42d1eab43222ce4
-rw-r--r-- | include/minikin/MinikinFont.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/minikin/MinikinFont.h b/include/minikin/MinikinFont.h index 3e53015..4d3ba9c 100644 --- a/include/minikin/MinikinFont.h +++ b/include/minikin/MinikinFont.h @@ -67,6 +67,8 @@ public: // Returns index within OpenType collection virtual int GetFontIndex() const { return 0; } + virtual int GetSourceId() const { return 0; } + virtual const std::vector<minikin::FontVariation>& GetAxes() const = 0; virtual std::shared_ptr<MinikinFont> createFontWithVariation( |