Returns the interglyph spacing in the specified range when sent to a printer.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
class func printingAdjustment(in layoutMgr: NSLayout Manager, forNominallySpacedGlyphRange nominallySpacedGlyphsRange: NSRange, packedGlyphs: Unsafe Pointer<UInt8>, count packedGlyphsCount: Int) -> NSSize
Parameters
layoutMgr
The layout manager that will do the drawing.
nominallySpacedGlyphsRange
The range of the glyphs whose spacing is desired.
packedGlyphs
The glyphs as they are packed for sending to be drawn in
layout
.Mgr packedGlyphsCount
The number of glyphs in
packed
.Glyphs
Return Value
The interglyph spacing in the specified range when sent to a printer. If the font metrics of the font used for displaying text on the screen is different from the font metrics of the font used in printing, then this interglyph spacing may need to be adjusted slightly to match that used on the screen.