Am 30.11.2011 um 12:49 schrieb Jaap Cammeraat:
> How does NSGraphicsMBS know which font+size I'm using?
You pass it in the dictionary with the options.
Like this:
Dim NSGraphics as New NSGraphicsMBS()
Dim NSFont as NSFontMBS = NSFontMBS.fontWithName("Helvetica", 11.0)
Dim NSAttributes as New Dictionary
NSAttributes.value(NSAttributedStringMBS.NSFontAttributeName) = nsfont
Dim stringWidth as Double = NSGraphics.sizeWithAttributes("Hello World",
NSAttributes).Width
MsgBox("StringWidth from NSGraphicsMBS: " + Str(stringWidth))
Greetings
Christian
--
See you in Orlando, Florida for Real World 2012
More details and registration here:
http://www.realsoftware.com/community/realworld.php
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info