site_archiver@lists.apple.com Delivered-To: Cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=/kf52cpWHUMySXdhGNG8amGQN1IMZbSWGbfJ+5zN29A=; b=nkFOsaWjHjQ624pfXh9yqlN4rrtZ5FEXjrsXWEJ79aYLZ7BYG2GzOQSx121s/UMV7c nZMp65O4VVIXZhXq/mqtiARxWcgLpLv5OmtiB4HCos+RcSaRmxZhlmHP27CCujaVemvM Kyy/fLsyy/Bm0AkSK4AZM5UiKuvmC9R49WhGY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VY8PSqge11e8fJ2p2IItsHWWvg+Ektm6myCdXif9lYNamWGobuZD2qghDXhPnCO2yY NmCMxZpaVxC/cc0uUw/tcuLE7pjYGYnZSbZoDEbNGuV5yhpTIu1jEaMtt6fLHpbUxVzA /mVjz1Xw2+OFmx5O03ihoS65IWZP6V38VyhBs= 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
James Jennings