<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Kindly indulge any rambling. I’m frustrated by glyphs on mac os x. So many Objective-C methods are deprecated. And I’m so ignorant.<div class=""><br class=""></div><div class="">NSGlyphs seem to be integers, in my experience with a Menlo-Regular font the glyph is 29 less than the ascii character code. </div><div class="">So I wondered (but this isn’t the main thrust of this message) when I came across this in cocoa-editor.lisp whether the use of (char-code #\space) was going to give the appropriate result.</div><div class=""><br class=""></div><div class=""><div class="">(defun size-of-char-in-font (f)</div><div class="">  (let* ((sf (#/screenFont f))</div><div class="">         (screen-p *use-screen-fonts*))</div><div class="">    (if (%null-ptr-p sf) (setq sf f screen-p nil))</div><div class="">    (let* ((layout (#/autorelease (#/init (#/alloc ns:ns-layout-manager)))))</div><div class="">      (#/setUsesScreenFonts: layout screen-p)</div><div class="">      (values (fround (#/defaultLineHeightForFont: layout sf))</div><div class="">              (fround (ns:ns-size-width (#/advancementForGlyph: sf (char-code #\space))))))))</div><div class=""><br class=""></div><div class="">Also, like so many, #/advancementForGlyph is a deprecated method.</div><div class=""><br class=""></div><div class="">So is #/appendBezierPathWithGlyph:inFont: which is what I’ve found to almost-work for what I want to do. I say <u class="">almost</u>-work because whenever I’ve used it, and then I quit ccl with cmd-Q, I get the distinctly odd dialog telling me that CCL has unexpectedly quit.</div><div class=""><br class=""></div></div><div class="">From Apple docs I have the feeling I should be using appendBezierPathWithCGGlyph:inFont:  (note the CG).  but #/appendBezierPathWithCGGlyph:inFont: doesn’t seem to name a function. Is there something special about CG?</div><div class=""><br class=""></div><div class="">Any help appreciated.</div><div class=""><br class=""></div><div class="">Arthur</div><div class=""><br class=""></div></body></html>