Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
FontToolUtils.cpp File Reference
#include "tools/fonts/FontToolUtils.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkImage.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPixelRef.h"
#include "include/core/SkStream.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkMutex.h"
#include "include/utils/SkCustomTypeface.h"
#include "src/base/SkUTF.h"
#include "src/core/SkOSFile.h"
#include "tools/Resources.h"
#include "tools/flags/CommandLineFlags.h"
#include "tools/fonts/TestFontMgr.h"

Go to the source code of this file.

Namespaces

namespace  ToolUtils
 

Macros

#define SK_FONT_FILE_PREFIX   "/usr/share/fonts/"
 

Functions

static ToolUtils::DEFINE_bool (nativeFonts, true, "If true, use native font manager and rendering. " "If false, fonts will draw as portably as possible.")
 
sk_sp< SkTypefaceToolUtils::PlanetTypeface ()
 
EmojiTestSample ToolUtils::EmojiSample ()
 
EmojiTestSample ToolUtils::EmojiSample (EmojiFontFormat format)
 
SkString ToolUtils::NameForFontFormat (EmojiFontFormat format)
 
sk_sp< SkTypefaceToolUtils::SampleUserTypeface ()
 
sk_sp< SkTypefaceToolUtils::CreatePortableTypeface (const char *name, SkFontStyle style)
 
sk_sp< SkTypefaceToolUtils::DefaultPortableTypeface ()
 
SkFont ToolUtils::DefaultPortableFont ()
 
SkBitmap ToolUtils::CreateStringBitmap (int w, int h, SkColor c, int x, int y, int textSize, const char *str)
 
sk_sp< SkImageToolUtils::CreateStringImage (int w, int h, SkColor c, int x, int y, int textSize, const char *str)
 
sk_sp< SkFontMgrToolUtils::TestFontMgr ()
 
bool ToolUtils::FontMgrIsGDI ()
 
void ToolUtils::UsePortableFontMgr ()
 
sk_sp< SkTypefaceToolUtils::DefaultTypeface ()
 
sk_sp< SkTypefaceToolUtils::CreateTestTypeface (const char *name, SkFontStyle style)
 
sk_sp< SkTypefaceToolUtils::CreateTypefaceFromResource (const char *resource, int ttcIndex)
 
SkFont ToolUtils::DefaultFont ()
 

Macro Definition Documentation

◆ SK_FONT_FILE_PREFIX

#define SK_FONT_FILE_PREFIX   "/usr/share/fonts/"

Definition at line 243 of file FontToolUtils.cpp.