Flutter Engine
The Flutter Engine
|
#include "include/core/SkFontArguments.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "src/core/SkTHash.h"
#include <climits>
#include <limits>
Go to the source code of this file.
Classes | |
class | SkLanguage |
struct | FontFileInfo |
struct | FontFamily |
Namespaces | |
namespace | SkFontMgr_Android_Parser |
Typedefs | |
typedef uint32_t | FontVariant |
Enumerations | |
enum | FontVariants { kDefault_FontVariant = 0x01 , kCompact_FontVariant = 0x02 , kElegant_FontVariant = 0x04 , kLast_FontVariant = kElegant_FontVariant } |
Functions | |
void | SkFontMgr_Android_Parser::GetSystemFontFamilies (SkTDArray< FontFamily * > &fontFamilies) |
void | SkFontMgr_Android_Parser::GetCustomFontFamilies (SkTDArray< FontFamily * > &fontFamilies, const SkString &basePath, const char *fontsXml, const char *fallbackFontsXml, const char *langFallbackFontsDir=nullptr) |
template<typename T > | |
bool | parse_non_negative_integer (const char *s, T *value) |
template<int N, typename T > | |
bool | parse_fixed (const char *s, T *value) |
typedef uint32_t FontVariant |
Definition at line 65 of file SkFontMgr_android_parser.h.
enum FontVariants |
Enumerator | |
---|---|
kDefault_FontVariant | |
kCompact_FontVariant | |
kElegant_FontVariant | |
kLast_FontVariant |
Definition at line 59 of file SkFontMgr_android_parser.h.
Parses a null terminated string into a signed fixed point value with bias N.
Like http://www.w3.org/TR/html-markup/datatypes.html#common.data.float-def , but may start with '.' and does not support 'e'. '-?((:digit:+(.:digit:+)?)|(.:digit:+))'
Checks for overflow. Low bit rounding is not defined (is currently truncate). Bias (N) required to allow for the sign bit and 4 bits of integer.
If the string cannot be parsed into 'value', returns false and does not change 'value'.
Definition at line 162 of file SkFontMgr_android_parser.h.
Parses a null terminated string into an integer type, checking for overflow. http://www.w3.org/TR/html-markup/datatypes.html#common.data.integer.non-negative-def
If the string cannot be parsed into 'value', returns false and does not change 'value'.
Definition at line 125 of file SkFontMgr_android_parser.h.