hyphenCharacter(forGlyphAt:)
Returns the hyphen character to be inserted after the specified glyph.
Declaration
func hyphenCharacter(forGlyphAt glyphIndex: Int) -> UTF32CharParameters
- glyphIndex:
The index of the glyph in question.
Return Value
The hyphen character to be inserted after the glyph at glyphIndex.
Discussion
The typesetter calls this method before hyphenating. A subclass can override this method to return a different hyphen glyph.
See Also
Laying out glyphs
layoutGlyphs(in:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:)boundingBox(forControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)getLineFragmentRect(_:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:)getLineFragmentRect(_:usedRect:remaining:forStartingGlyphAt:proposedRect:lineSpacing:paragraphSpacingBefore:paragraphSpacingAfter:)hyphenationFactor(forGlyphAt:)shouldBreakLine(byHyphenatingBeforeCharacterAt:)shouldBreakLine(byWordBeforeCharacterAt:)willSetLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setHardInvalidation(_:forGlyphRange:)