Flutter Engine
The Flutter Engine
|
#include "include/core/SkBBHFactory.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkData.h"
#include "include/core/SkDrawable.h"
#include "include/core/SkFontMetrics.h"
#include "include/core/SkGraphics.h"
#include "include/core/SkPath.h"
#include "include/core/SkPictureRecorder.h"
#include "include/core/SkScalar.h"
#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkMutex.h"
#include "include/private/base/SkTPin.h"
#include "include/private/base/SkTemplates.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkTSearch.h"
#include "src/core/SkAdvancedTypefaceMetrics.h"
#include "src/core/SkDescriptor.h"
#include "src/core/SkFDot6.h"
#include "src/core/SkFontDescriptor.h"
#include "src/core/SkFontScanner.h"
#include "src/core/SkGlyph.h"
#include "src/core/SkMask.h"
#include "src/core/SkMaskGamma.h"
#include "src/core/SkScalerContext.h"
#include "src/ports/SkFontHost_FreeType_common.h"
#include "src/ports/SkTypeface_FreeType.h"
#include "src/sfnt/SkOTUtils.h"
#include "src/sfnt/SkSFNTHeader.h"
#include "src/sfnt/SkTTCFHeader.h"
#include "src/utils/SkCallableTraits.h"
#include "src/utils/SkMatrix22.h"
#include <memory>
#include <optional>
#include <tuple>
#include <ft2build.h>
#include <freetype/ftadvanc.h>
#include <freetype/ftimage.h>
#include <freetype/ftbitmap.h>
#include <freetype/freetype.h>
#include <freetype/ftlcdfil.h>
#include <freetype/ftmodapi.h>
#include <freetype/ftmm.h>
#include <freetype/ftoutln.h>
#include <freetype/ftsizes.h>
#include <freetype/ftsystem.h>
#include <freetype/tttables.h>
#include <freetype/t1tables.h>
#include <freetype/ftfntfmt.h>
#include <dlfcn.h>
#include "src/base/SkUtils.h"
Go to the source code of this file.
Classes | |
class | FreeTypeLibrary |
class | SkTypeface_FreeType::FaceRec |
class | AutoFTAccess |
class | SkScalerContext_FreeType |
Macros | |
#define | SK_FREETYPE_DLOPEN (0x1) |
#define | SK_FREETYPE_MINIMUM_RUNTIME_VERSION ((2 << 24) | (8 << 16) | (1 << 8) | (SK_FREETYPE_DLOPEN)) |
#define | LOG_INFO(...) |
#define | SK_OUTLINE_EMBOLDEN_DIVISOR 24 |
Typedefs | |
using | FT_Alloc_size_t = SkCallableTraits< FT_Alloc_Func >::argument< 1 >::type |
Functions | |
static bool | isLCD (const SkScalerContextRec &rec) |
static SkScalar | SkFT_FixedToScalar (FT_Fixed x) |
static void * | sk_ft_alloc (FT_Memory, FT_Alloc_size_t size) |
static void | sk_ft_free (FT_Memory, void *block) |
static void * | sk_ft_realloc (FT_Memory, FT_Alloc_size_t cur_size, FT_Alloc_size_t new_size, void *block) |
static SkMutex & | f_t_mutex () |
static unsigned long | sk_ft_stream_io (FT_Stream ftStream, unsigned long offset, unsigned char *buffer, unsigned long count) |
static void | sk_ft_stream_close (FT_Stream) |
static bool | canEmbed (FT_Face face) |
static bool | canSubset (FT_Face face) |
static SkAdvancedTypefaceMetrics::FontType | get_font_type (FT_Face face) |
static bool | is_opentype_font_data_standard_format (const SkTypeface &typeface) |
static bool | bothZero (SkScalar a, SkScalar b) |
static bool | isAxisAligned (const SkScalerContextRec &rec) |
static int | GetVariationDesignPosition (AutoFTAccess &fta, SkFontArguments::VariationPosition::Coordinate coordinates[], int coordinateCount) |
static FT_Int | chooseBitmapStrike (FT_Face face, FT_F26Dot6 scaleY) |
Variables | |
FT_MemoryRec_ | gFTMemory = { nullptr, sk_ft_alloc, sk_ft_free, sk_ft_realloc } |
static FreeTypeLibrary * | gFTLibrary |
constexpr int | kMaxC2GCacheCount = 512 |
#define LOG_INFO | ( | ... | ) |
Definition at line 112 of file SkFontHost_FreeType.cpp.
#define SK_FREETYPE_DLOPEN (0x1) |
Definition at line 77 of file SkFontHost_FreeType.cpp.
#define SK_FREETYPE_MINIMUM_RUNTIME_VERSION ((2 << 24) | (8 << 16) | (1 << 8) | (SK_FREETYPE_DLOPEN)) |
Definition at line 84 of file SkFontHost_FreeType.cpp.
#define SK_OUTLINE_EMBOLDEN_DIVISOR 24 |
Definition at line 1671 of file SkFontHost_FreeType.cpp.
using FT_Alloc_size_t = SkCallableTraits<FT_Alloc_Func>::argument<1>::type |
Definition at line 127 of file SkFontHost_FreeType.cpp.
Definition at line 681 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 505 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 511 of file SkFontHost_FreeType.cpp.
|
static |
Returns the bitmap strike equal to or just larger than the requested size.
Definition at line 861 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 193 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 516 of file SkFontHost_FreeType.cpp.
|
static |
Copy the design variation coordinates into 'coordinates'.
coordinates | the buffer into which to write the design variation coordinates. |
coordinateCount | the number of entries available through 'coordinates'. |
Definition at line 715 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 528 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 686 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 117 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 132 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 135 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 138 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 266 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 250 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 121 of file SkFontHost_FreeType.cpp.
|
static |
Definition at line 198 of file SkFontHost_FreeType.cpp.
FT_MemoryRec_ gFTMemory = { nullptr, sk_ft_alloc, sk_ft_free, sk_ft_realloc } |
Definition at line 143 of file SkFontHost_FreeType.cpp.
|
constexpr |
Definition at line 1718 of file SkFontHost_FreeType.cpp.