Flutter Engine
The Flutter Engine
|
#include "include/core/SkStream.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkMalloc.h"
#include "src/base/SkAutoMalloc.h"
#include "src/base/SkEndian.h"
#include "src/core/SkFontStream.h"
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | SkSFNTHeader |
struct | SkTTCFHeader |
union | SkSharedTTHeader |
struct | SkSFNTDirEntry |
struct | SfntHeader |
Functions | |
static bool | read (SkStream *stream, void *buffer, size_t amount) |
static bool | skip (SkStream *stream, size_t amount) |
static int | count_tables (SkStream *stream, int ttcIndex, size_t *offsetToDir) |
Return the number of tables, or if this is a TTC (collection), return the number of tables in the first element of the collection. In either case, if offsetToDir is not-null, set it to the offset to the beginning of the table headers (SkSFNTDirEntry), relative to the start of the stream.
On an error, return 0 for number of tables, and ignore offsetToDir
Definition at line 59 of file SkFontStream.cpp.
|
static |
Definition at line 44 of file SkFontStream.cpp.
|
static |
Definition at line 48 of file SkFontStream.cpp.