[Openmcl-devel] baselineDeltaForCharacterAtIndex:
Glen Foy
lisp at clairvaux.org
Thu Aug 15 09:51:50 PDT 2013
This is a method of the NSTextInputClient protocol. Implementation is optional, and NSTextView apparently does not provide an implementation. The symbol is unbound.
I need to find the screen coordinates of the baseline of a string of Hemlock code. The string will contain a mixture of fonts and font sizes. #/baselineDeltaForCharacterAtIndex: in combination with #/firstRectForCharacterRange:actualRange: will provide this, but the method is not implemented.
Another approach would be to find the length of the largest descender in the string. That would also probably provide the position of the baseline. But the NSFont method #/descender returns the length of the largest descender in the font, not the descender of a particular glyph.
Does anyone know a workaround?
Thanks,
-- Glen
More information about the Openmcl-devel
mailing list