Home | History | Annotate | Download | only in hwui

Lines Matching refs:minikin

29 #include <minikin/FontCollection.h>
30 #include <minikin/FontFamily.h>
31 #include <minikin/Layout.h>
46 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) {
47 return minikin::FontStyle(uirenderer::MathUtils::clamp(weight, 1, 1000),
48 static_cast<minikin::FontStyle::Slant>(italic));
52 static minikin::FontStyle computeRelativeStyle(int baseWeight, Typeface::Style relativeStyle) {
93 Typeface* src, const std::vector<minikin::FontVariation>& variations) {
125 Typeface* Typeface::createFromFamilies(std::vector<std::shared_ptr<minikin::FontFamily>>&& families,
128 result->fFontCollection.reset(new minikin::FontCollection(families));
134 const minikin::FontStyle defaultStyle;
135 const minikin::MinikinFont* mf = families.empty() ? nullptr
183 std::shared_ptr<minikin::MinikinFont> font = std::make_shared<MinikinFontSkia>(
184 std::move(typeface), data, st.st_size, 0, std::vector<minikin::FontVariation>());
185 std::vector<minikin::Font> fonts;
186 fonts.push_back(minikin::Font::Builder(font).build());
188 std::shared_ptr<minikin::FontCollection> collection = std::make_shared<minikin::FontCollection>(
189 std::make_shared<minikin::FontFamily>(std::move(fonts)));
195 hwTypeface->fStyle = minikin::FontStyle();