Home
last modified time | relevance | path

Searched refs:typefaces_ (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/
H A Dtypeface_font_asset_provider.cpp102 typefaces_.emplace_back(std::move(typeface)); in registerTypeface()
108 typefaces_.erase(typefaces_.begin(), typefaces_.end()); in unregisterTypefaces()
113 return typefaces_.size(); in count()
118 SkASSERT(static_cast<size_t>(index) < typefaces_.size()); in getStyle()
119 if (static_cast<size_t>(index) >= typefaces_.size()) { in getStyle()
123 *style = typefaces_[index]->fontStyle(); in getStyle()
132 if (index < static_cast<int>(typefaces_.size())) { in createTypeface()
133 return SkRef(typefaces_[index].get()); in createTypeface()
H A Dtypeface_font_asset_provider.h48 std::vector<sk_sp<SkTypeface>> typefaces_;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dfont_collection.cpp60 for (const auto& [id, typeface] : typefaces_) { in ~FontCollection()
63 typefaces_.clear(); in ~FontCollection()
88 if (typefaces_.find(typeface->GetUniqueID()) != typefaces_.end()) { in RegisterTypeface()
95 typefaces_.emplace(typeface->GetUniqueID(), typeface); in RegisterTypeface()
127 for (auto item : typefaces_) { in LoadThemeFont()
H A Dfont_collection.h53 std::unordered_map<uint32_t, std::shared_ptr<Drawing::Typeface>> typefaces_; variable