Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions | Variables
platform_mac.mm File Reference
#include <TargetConditionals.h>
#include "flutter/fml/platform/darwin/cf_utils.h"
#include "flutter/fml/platform/darwin/platform_version.h"
#include "third_party/skia/include/ports/SkFontMgr_mac_ct.h"
#include "third_party/skia/include/ports/SkTypeface_mac.h"
#include "txt/platform.h"
#include "txt/platform_mac.h"
#include <AppKit/AppKit.h>

Go to the source code of this file.

Namespaces

namespace  txt
 

Macros

#define FONT_CLASS   NSFont
 

Functions

std::vector< std::string > txt::GetDefaultFontFamilies ()
 
sk_sp< SkFontMgrtxt::GetDefaultFontManager (uint32_t font_initialization_data)
 
fml::CFRef< CTFontRef > txt::MatchSystemUIFont (float desired_weight, float size)
 
void txt::RegisterSystemFonts (const DynamicFontManager &dynamic_font_manager)
 

Variables

static const CGFloat kSFProDisplayBreakPoint = 29
 
static const std::string kSFProDisplayName = "CupertinoSystemDisplay"
 
float kNormalWeightValue = 400
 
const FourCharCode txt::kWeightTag = 'wght'
 

Macro Definition Documentation

◆ FONT_CLASS

#define FONT_CLASS   NSFont

Definition at line 19 of file platform_mac.mm.

Variable Documentation

◆ kNormalWeightValue

float kNormalWeightValue = 400

Definition at line 27 of file platform_mac.mm.

◆ kSFProDisplayBreakPoint

const CGFloat kSFProDisplayBreakPoint = 29
static

Definition at line 23 of file platform_mac.mm.

◆ kSFProDisplayName

const std::string kSFProDisplayName = "CupertinoSystemDisplay"
static

Definition at line 25 of file platform_mac.mm.