Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Adam R. Maxwell
On Jun 23, 2009, at 6:20 PM, WT wrote: On 24/06/2009, at 4:02 AM, Anders Lassen wrote: The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. You know, I have no clue if this is going to help or not, because I

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Graham Cox
On 24/06/2009, at 11:20 AM, WT wrote: On 24/06/2009, at 4:02 AM, Anders Lassen wrote: The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. You know, I have no clue if this is going to help or not, because I h

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread WT
On 24/06/2009, at 4:02 AM, Anders Lassen wrote: The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. You know, I have no clue if this is going to help or not, because I have no experience whatsoever with typeset

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Graham Cox
On 24/06/2009, at 4:02 AM, Anders Lassen wrote: The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. In general, I don't think it's meaningful to ask for the metrics ascender, descender, and so on for an individ

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Yes, thanks, I am sure this will help. On Jun 23, 2009, at 8:02 PM, Quincey Morris wrote: On Jun 23, 2009, at 10:32, Anders Lassen wrote: I am working on a project that involves writing math formulas.: 2 * x^2 + sqrt(3) - + aB 3 note that the above is only to

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I have learned a bit more since I started this investigation. So now I know that I can use Core Text or ATSUI to get glyph metrics. (see former email responses about this) Anders Lassen On Jun 23, 2009, at 8:39 PM, Scott Thompson wrote: On Jun 23, 2009, at 1:02 PM, Anders Lassen wro

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Scott Thompson
On Jun 23, 2009, at 1:02 PM, Anders Lassen wrote: The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct Unfortunately the documentation on the text system in Mac OS X can be very difficult to navigate (as you have

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, The font descent is the maximum descent for all characters in that font, so it will not help me to position the character correct. Anders Lassen On Jun 23, 2009, at 7:37 PM, I. Savant wrote: On Jun 23, 2009, at 12:44 PM, Anders Lassen wrote: To clarify this and my original question:

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Quincey Morris
On Jun 23, 2009, at 10:32, Anders Lassen wrote: I am working on a project that involves writing math formulas.: 2 * x^2 + sqrt(3) - + aB 3 note that the above is only to explain, what I mean by math formulas. In my project, I have a object type that handles let

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread I. Savant
On Jun 23, 2009, at 12:44 PM, Anders Lassen wrote: To clarify this and my original question: It is easy to find infomation about how to get a fonts ascent and descent, but I cant find any info about getting ascent/descent fot individual glyphs. I'm not sure if this is correct, but looking

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I am working on a project that involves writing math formulas.: 2 * x^2 + sqrt(3) - + aB 3 note that the above is only to explain, what I mean by math formulas. In my project, I have a object type that handles letters. Because letters must be aligned to s

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread I. Savant
On Jun 23, 2009, at 12:44 PM, Anders Lassen wrote: To clarify this and my original question: It is easy to find infomation about how to get a fonts ascent and descent, but I cant find any info about getting ascent/descent fot individual glyph What exactly are you trying to accomplish? In

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I have read: TrueType Reference Manual: http://developer.apple.com/textfonts/TTRefMan/ FontHandling: http://developer.apple.com/documentation/Cocoa/Conceptual/FontHandling/FontHandling.pdf and About drawing text with Cocoa NSString and NSAtrributedString, etc. and "Introduction to Quart

Re: Problem: how to get glyph descent and ascent

2009-06-23 Thread I. Savant
On Jun 23, 2009, at 12:14 PM, Anders Lassen wrote: I need to know the descent and ascent for individual glyphs. I have looked in several document sets -- both cocoa and carbon, but I did not have any luck. Hope someone can help, What specific documentation did you read? What did you not

Problem: how to get glyph descent and ascent

2009-06-23 Thread Anders Lassen
Hi, I need to know the descent and ascent for individual glyphs. I have looked in several document sets -- both cocoa and carbon, but I did not have any luck. Hope someone can help, Anders Lassen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.