mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 07:25:52 +00:00
Added -isBold accessor, fixel documentation to indicate font size is actually in css pixels, not points.
This commit is contained in:
1 parent
1d8ab840dc
commit
92897a91ed
1 file changed
+9
-1
+9
-1
@@ -124,13 +124,21 @@ var _CPFonts = {},
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the font size (in points)
|
||||
Returns the font size (in CSS px)
|
||||
*/
|
||||
- (float)size
|
||||
{
|
||||
return _size;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns whether the font is bold
|
||||
*/
|
||||
- (BOOL)isBold
|
||||
{
|
||||
return _isBold;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the font as a CSS string
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user