Namespaces | |
| namespace | testing |
Classes | |
| class | AssetFontManager |
| class | DynamicFontManager |
| class | FontAssetProvider |
| class | FontCollection |
| class | FontFeatures |
| class | FontVariations |
| class | LineMetrics |
| class | Paragraph |
| class | ParagraphBuilder |
| class | ParagraphBuilderSkia |
| ParagraphBuilder implementation using Skia's text layout module. More... | |
| class | ParagraphSkia |
| class | ParagraphStyle |
| class | PlaceholderRun |
| class | RunMetrics |
| class | SkiaParagraphBuilderTests |
| class | TestFontManager |
| class | TextShadow |
| class | TextStyle |
| class | TypefaceFontAssetProvider |
| class | TypefaceFontStyleSet |
Typedefs | |
| using | PaintID = skt::ParagraphPainter::PaintID |
Enumerations | |
| enum class | FontStyle { normal , italic } |
| enum | FontWeight : int { normal = 400 } |
| enum class | TextAlign { left , right , center , justify , start , end } |
| enum class | TextDirection { rtl , ltr } |
| enum | TextHeightBehavior { kAll = 0x0 , kDisableFirstAscent = 0x1 , kDisableLastDescent = 0x2 , kDisableAll = 0x1 | 0x2 } |
| enum class | PlaceholderAlignment { kBaseline , kAboveBaseline , kBelowBaseline , kTop , kBottom , kMiddle } |
| Where to vertically align the placeholder relative to the surrounding text. More... | |
| enum | TextBaseline { kAlphabetic , kIdeographic } |
| enum | TextDecoration { kNone = 0x0 , kUnderline = 0x1 , kOverline = 0x2 , kLineThrough = 0x4 } |
| enum | TextDecorationStyle { kSolid , kDouble , kDotted , kDashed , kWavy } |
Functions | |
| std::vector< std::string > | GetDefaultFontFamilies () |
| sk_sp< SkFontMgr > | GetDefaultFontManager (uint32_t font_initialization_data) |
| void | RegisterSystemFonts (const DynamicFontManager &dynamic_font_manager) |
| fml::CFRef< CTFontRef > | MatchSystemUIFont (float desired_weight, float size) |
| TEST_F (SkiaParagraphBuilderTests, ParagraphStrutStyle) | |
| const std::string & | GetFontDir () |
| void | SetFontDir (const std::string &dir) |
Variables | |
| const FourCharCode | kWeightTag = 'wght' |
| static std::string | gFontDir |
| using txt::PaintID = typedef skt::ParagraphPainter::PaintID |
Definition at line 21 of file paragraph_skia.cc.
|
strong |
| Enumerator | |
|---|---|
| normal | |
| italic | |
Definition at line 10 of file font_style.h.
| enum txt::FontWeight : int |
| Enumerator | |
|---|---|
| normal | |
Definition at line 10 of file font_weight.h.
|
strong |
Where to vertically align the placeholder relative to the surrounding text.
Definition at line 13 of file placeholder_run.h.
|
strong |
| enum txt::TextBaseline |
| Enumerator | |
|---|---|
| kAlphabetic | |
| kIdeographic | |
Definition at line 10 of file text_baseline.h.
| enum txt::TextDecoration |
| Enumerator | |
|---|---|
| kNone | |
| kUnderline | |
| kOverline | |
| kLineThrough | |
Definition at line 12 of file text_decoration.h.
|
strong |
| Enumerator | |
|---|---|
| rtl | |
| ltr | |
Definition at line 28 of file paragraph_style.h.
| Enumerator | |
|---|---|
| kAll | |
| kDisableFirstAscent | |
| kDisableLastDescent | |
| kDisableAll | |
Definition at line 49 of file paragraph_style.h.
| std::vector< std::string > txt::GetDefaultFontFamilies | ( | ) |
Definition at line 13 of file platform.cc.
Referenced by txt::FontCollection::CreateSktFontCollection().
| sk_sp< SkFontMgr > txt::GetDefaultFontManager | ( | uint32_t | font_initialization_data = 0 | ) |
Definition at line 17 of file platform.cc.
Referenced by flutter::testing::CreateTestFontOfSize(), impeller::DlPlayground::CreateTestFontOfSize(), flutter::AssetManagerFontStyleSet::createTypeface(), impeller::interop::CreateTypefaceFromFontData(), flutter::GetTestFontData(), flutter::FontCollection::LoadFontFromList(), flutter::PerformanceOverlayLayer::MakeStatisticsFont(), flutter::PrefetchDefaultFontManager(), flutter::testing::RenderTextInCanvasSkia(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| const std::string & txt::GetFontDir | ( | ) |
Definition at line 11 of file txt_test_utils.cc.
References gFontDir.
Referenced by BENCHMARK_DEFINE_F(), main(), and SkParagraphFixture::SetUp().
| fml::CFRef< CTFontRef > txt::MatchSystemUIFont | ( | float | desired_weight, |
| float | size | ||
| ) |
Definition at line 46 of file platform_mac.mm.
References kNormalWeightValue, kWeightTag, and flutter::size.
Referenced by RegisterSystemFonts().
| void txt::RegisterSystemFonts | ( | const DynamicFontManager & | dynamic_font_manager | ) |
Definition at line 83 of file platform_mac.mm.
References txt::DynamicFontManager::font_provider(), i, kSFProDisplayBreakPoint, kSFProDisplayName, MatchSystemUIFont(), and txt::TypefaceFontAssetProvider::RegisterTypeface().
Referenced by txt::testing::TEST_F().
| void txt::SetFontDir | ( | const std::string & | dir | ) |
| txt::TEST_F | ( | SkiaParagraphBuilderTests | , |
| ParagraphStrutStyle | |||
| ) |
Definition at line 21 of file paragraph_builder_skia_tests.cc.
References txt::ParagraphStyle::strut_half_leading.
|
static |
Definition at line 9 of file txt_test_utils.cc.
Referenced by GetFontDir(), and SetFontDir().
| const FourCharCode txt::kWeightTag = 'wght' |
Definition at line 31 of file platform_mac.mm.
Referenced by MatchSystemUIFont().