{{FONT_WEIGHT_INDEX, kCTFontWeightTrait,
{{-0.4, 50}, /* light */
{-0.24, 87.5}, /* (semi-light + normal) / 2 */
- {0, 100}, /* normal */
+ {0, 80}, /* normal */
{0.24, 140}, /* (semi-bold + normal) / 2 */
{0.4, 200}, /* bold */
{CGFLOAT_MAX, CGFLOAT_MAX}},
tem = [dict objectForKey: NSFontWeightTrait];
+#ifdef NS_IMPL_GNUSTEP
if (tem != nil)
lweight = ([tem floatValue] > 0
? Qbold : ([tem floatValue] < -0.4f
? Qlight : Qnormal));
+#else
+ if (tem != nil)
+ {
+ if ([tem floatValue] >= 0.4)
+ lweight = Qbold;
+ else if ([tem floatValue] >= 0.24)
+ lweight = Qmedium;
+ else if ([tem floatValue] >= 0)
+ lweight = Qnormal;
+ else if ([tem floatValue] >= -0.24)
+ lweight = Qsemi_light;
+ else
+ lweight = Qlight;
+ }
+#endif
tem = [dict objectForKey: NSFontWidthTrait];
prototype = [[NSButtonCell alloc] init];
[prototype setBezelStyle: NSBezelStyleRounded];
+ [prototype setTitle: @"Cancel"];
cell_size = [prototype cellSize];
frame = NSMakeRect (0, 0, cell_size.width * 2,
cell_size.height);