• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bold Braille
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bold Braille


  • Subject: Bold Braille
  • From: James Jennings <email@hidden>
  • Date: Thu, 31 Dec 2009 19:55:33 -0800

In my braille app, the font "Apple Braille" looks kind of wimpy when
printed. Some people say it's hard to read. I thought I'd try making it
bold, but for some reason, Apple Braille does not go bold in any app I've
tried.


Okay, so maybe there isn't a bold variant of the braille font installed. So
I tried using the NSFontWeightTrait, but that has no effect either. It
doesn't have any effect on any other font I've tried. Does it only work on
special fonts? If so, where is that documented?


My questions are:

1) Why can't I make Apple Braille bold?

2) Why doesn't NSFontWeightTrait work at all? (see code below)

3) Is there another way to make my braille look "heavier"?


NSFont * font = [NSFont fontWithName:aName size:aSize];

NSFontDescriptor *descriptor = [font fontDescriptor];

NSNumber *advance = [NSNumber numberWithDouble:cellWidth];

NSNumber *zero = [NSNumber numberWithDouble: 0.0];

NSNumber *one = [NSNumber numberWithDouble: 1.0];


NSDictionary *newAttributes;

newAttributes = [NSDictionary dictionaryWithObjectsAndKeys:

advance, NSFontFixedAdvanceAttribute,   // this works...

[NSDictionary dictionaryWithObjectsAndKeys:

one , NSFontWeightTrait,        // this doesn't work.

zero, NSFontWidthTrait,

zero, NSFontSlantTrait,

zero, NSFontSymbolicTrait,

nil], NSFontTraitsAttribute,

nil];

descriptor = [descriptor fontDescriptorByAddingAttributes:newAttributes];


[self setFont: [NSFont fontWithDescriptor:descriptor size:0.0]];


Thanks,

James
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSDocument, NSManagedObjectContext do Stuff in -dealloc, Cause Crash
  • Next by Date: Alternative KVC accessors
  • Previous by thread: Re: Landscape view drawing as if in portrait mode
  • Next by thread: Alternative KVC accessors
  • Index(es):
    • Date
    • Thread