Re: Troubles with Bold and Italic fonts - Cocoa

2011-11-15 Thread Jens Alfke
On Nov 15, 2011, at 12:13 AM, Dany Golubitsky wrote: > As for render - we have a part of code that generates bitmap from it and we > draw it using OpenGL. I am not really familiar with this part of code. > I do not think it is related, since, as I said some fonts do work, so it is > not render

RE: Troubles with Bold and Italic fonts - Cocoa

2011-11-15 Thread Dany Golubitsky
, November 14, 2011 20:30 To: Steve Steinitz Cc: Cocoa Dev Subject: Re: Troubles with Bold and Italic fonts - Cocoa >> NSFontManager* fontManager = [NSFontManager sharedFontManager]; >> NSFont* font = [fontManager fontWithFamily:@"Helvetica" traits:fontStyle >> w

Re: Troubles with Bold and Italic fonts - Cocoa

2011-11-14 Thread Jens Alfke
>> NSFontManager* fontManager = [NSFontManager sharedFontManager]; >> NSFont* font = [fontManager fontWithFamily:@"Helvetica" traits:fontStyle >> weight:5 size:12]; >> However, the displayed font is not always what I asked. For example, It >> works with Verdana (I see it bold). But it does

RE: Troubles with Bold and Italic fonts - Cocoa

2011-11-13 Thread Dany Golubitsky
Bold and Italic fonts - Cocoa Hi Dany, I'm not sure what's wrong but, for what its worth, I use: NSFont * aFont = [NSFont fontWithName: @"Cochin" size: 10.0]; aFont = [fontManager convertFont: aFont toHaveT

RE: Troubles with Bold and Italic fonts - Cocoa

2011-11-13 Thread Dany Golubitsky
Hewitson; cocoa-dev@lists.apple.com Subject: Re: Troubles with Bold and Italic fonts - Cocoa Danny, I'm no font expert, but you could try playing with the 'weight' setting. I see you have it set to 5. Try setting it to 0 and see if that makes a difference. Sometimes when choos

Re: Troubles with Bold and Italic fonts - Cocoa

2011-11-13 Thread Steve Steinitz
Hi Dany, I'm not sure what's wrong but, for what its worth, I use: NSFont * aFont = [NSFont fontWithName: @"Cochin" size: 10.0]; aFont = [fontManager convertFont: aFont toHaveTrait: NSBoldFontMask]; Cheers, Steve On 14 Nov 11

Re: Troubles with Bold and Italic fonts - Cocoa

2011-11-13 Thread Martin Hewitson
Danny, I'm no font expert, but you could try playing with the 'weight' setting. I see you have it set to 5. Try setting it to 0 and see if that makes a difference. Sometimes when choosing a bold font, the resulting font anyway has a given weight. At least this is something I saw only yesterday