Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3ed198f

Browse files
remove docs for containsText
Bug: skia: Change-Id: I08f2586e34c51a0a98d5f962e5f37691cd87c5f9 Reviewed-on: https://skia-review.googlesource.com/c/188624 Reviewed-by: Mike Reed <reed@google.com>
1 parent fd0d970 commit 3ed198f

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

docs/SkFont_Reference.bmh

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ Whether edge pixels draw opaque or with partial transparency.
709709

710710
# ------------------------------------------------------------------------------
711711

712-
#Method uint16_t unicharToGlyph(SkUnichar uni) const
712+
#Method SkGlyphID unicharToGlyph(SkUnichar uni) const
713713
#In incomplete
714714
#Line # incomplete ##
715715

@@ -746,59 +746,6 @@ Whether edge pixels draw opaque or with partial transparency.
746746

747747
# ------------------------------------------------------------------------------
748748

749-
#Method bool containsText(const void* text, size_t byteLength, SkTextEncoding encoding) const
750-
#In Utility
751-
#Line # returns if all text corresponds to Glyphs ##
752-
#Populate
753-
754-
#NoExample
755-
#Description
756-
containsText succeeds for degree symbol, but cannot find a glyph index
757-
corresponding to the Unicode surrogate code point.
758-
##
759-
SkFont font;
760-
const uint16_t goodChar = 0x00B0; // degree symbol
761-
const uint16_t badChar = 0xD800; // Unicode surrogate
762-
SkDebugf("0x%04x %c= has char\n", goodChar,
763-
font.containsText(&goodChar, 2, SkTextEncoding::kUTF16) ? '=' : '!');
764-
SkDebugf("0x%04x %c= has char\n", badChar,
765-
font.containsText(&badChar, 2, SkTextEncoding::kUTF16) ? '=' : '!');
766-
767-
#StdOut
768-
0x00b0 == has char
769-
0xd800 != has char
770-
##
771-
##
772-
773-
#Example
774-
#Description
775-
containsText returns true that glyph index is greater than zero, not
776-
that it corresponds to an entry in Typeface.
777-
##
778-
SkFont font;
779-
const uint16_t goodGlyph = 511;
780-
const uint16_t zeroGlyph = 0;
781-
const uint16_t badGlyph = 65535; // larger than glyph count in font
782-
SkDebugf("0x%04x %c= has glyph\n", goodGlyph,
783-
font.containsText(&goodGlyph, 2, SkTextEncoding::kGlyphID) ? '=' : '!');
784-
SkDebugf("0x%04x %c= has glyph\n", zeroGlyph,
785-
font.containsText(&zeroGlyph, 2, SkTextEncoding::kGlyphID) ? '=' : '!');
786-
SkDebugf("0x%04x %c= has glyph\n", badGlyph,
787-
font.containsText(&badGlyph, 2, SkTextEncoding::kGlyphID) ? '=' : '!');
788-
789-
#StdOut
790-
0x01ff == has glyph
791-
0x0000 != has glyph
792-
0xffff == has glyph
793-
##
794-
##
795-
796-
#SeeAlso incomplete
797-
798-
#Method ##
799-
800-
# ------------------------------------------------------------------------------
801-
802749
#Method SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding,
803750
SkRect* bounds = nullptr) const
804751
#In incomplete

0 commit comments

Comments
 (0)