Flutter Engine
The Flutter Engine
Classes | Functions
SkStrike.cpp File Reference
#include "src/core/SkStrike.h"
#include "include/core/SkDrawable.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPath.h"
#include "include/core/SkString.h"
#include "include/core/SkTraceMemoryDump.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTFitsIn.h"
#include "src/core/SkGlyph.h"
#include "src/core/SkMask.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkScalerContext.h"
#include "src/core/SkStrikeCache.h"
#include "src/core/SkWriteBuffer.h"
#include "src/text/StrikeForGPU.h"
#include <cctype>
#include <new>
#include <optional>
#include <utility>

Go to the source code of this file.

Classes

class  SkStrike
 

Functions

static SkFontMetrics use_or_generate_metrics (const SkFontMetrics *metrics, SkScalerContext *context)
 

Function Documentation

◆ use_or_generate_metrics()

static SkFontMetrics use_or_generate_metrics ( const SkFontMetrics metrics,
SkScalerContext context 
)
static

Definition at line 34 of file SkStrike.cpp.

35 {
36 SkFontMetrics answer;
37 if (metrics) {
38 answer = *metrics;
39 } else {
40 context->getFontMetrics(&answer);
41 }
42 return answer;
43}
void getFontMetrics(SkFontMetrics *)