This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +3
-22
lines changed Expand file tree Collapse file tree 4 files changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,6 @@ class SK_API SkFont {
511
511
friend class SkCanonicalizeFont ;
512
512
friend class SkFontPriv ;
513
513
friend class SkGlyphRunListPainter ;
514
- friend class SkPaint ;
515
514
friend class SkTextBlobCacheDiffCanvas ;
516
515
friend class SVGTextBuilder ;
517
516
};
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ class SkImageFilter;
32
32
class SkMaskFilter ;
33
33
class SkPath ;
34
34
class SkPathEffect ;
35
- struct SkPoint ;
36
35
class SkShader ;
37
36
38
37
/* * \class SkPaint
Original file line number Diff line number Diff line change @@ -413,20 +413,6 @@ sk_sp<SkTypeface> SkFont::refTypefaceOrDefault() const {
413
413
414
414
// ////////////////////////////////////////////////////////////////////////////////////////////////
415
415
416
- int SkFontPriv::ValidCountText (const void * text, size_t length, SkTextEncoding encoding) {
417
- switch (encoding) {
418
- case kUTF8_SkTextEncoding : return SkUTF::CountUTF8 ((const char *)text, length);
419
- case kUTF16_SkTextEncoding : return SkUTF::CountUTF16 ((const uint16_t *)text, length);
420
- case kUTF32_SkTextEncoding : return SkUTF::CountUTF32 ((const int32_t *)text, length);
421
- case kGlyphID_SkTextEncoding :
422
- if (!SkIsAlign2 (intptr_t (text)) || !SkIsAlign2 (length)) {
423
- return -1 ;
424
- }
425
- return length >> 1 ;
426
- }
427
- return -1 ;
428
- }
429
-
430
416
void SkFontPriv::ScaleFontMetrics (SkFontMetrics* metrics, SkScalar scale) {
431
417
metrics->fTop *= scale;
432
418
metrics->fAscent *= scale;
Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ class SkFontPriv {
54
54
55
55
static void ScaleFontMetrics (SkFontMetrics*, SkScalar);
56
56
57
- // returns -1 if buffer is invalid for specified encoding
58
- static int ValidCountText (const void * text, size_t length, SkTextEncoding);
59
-
60
57
/* *
61
58
Returns the union of bounds of all glyphs.
62
59
Returned dimensions are computed by font manager from font data,
@@ -71,9 +68,9 @@ class SkFontPriv {
71
68
static SkRect GetFontBounds (const SkFont&);
72
69
73
70
static bool IsFinite (const SkFont& font) {
74
- return SkScalarIsFinite (font.fSize ) &&
75
- SkScalarIsFinite (font.fScaleX ) &&
76
- SkScalarIsFinite (font.fSkewX );
71
+ return SkScalarIsFinite (font.getSize () ) &&
72
+ SkScalarIsFinite (font.getScaleX () ) &&
73
+ SkScalarIsFinite (font.getSkewX () );
77
74
}
78
75
79
76
// Returns the number of elements (characters or glyphs) in the array.
You can’t perform that action at this time.
0 commit comments