class
D2DFont
js/d2d.js:191
D2DFont(name, size_px, style)
Constructor may fail if font is not present.
Performance note: try caching and reusing D2DFont objects, since the maximum amount of such objects is hard-limited by Windows. D2DFont creation will fail after reaching this limit.
Parameters
| Name | Type | Description |
|---|---|---|
name | string | |
size_px | number | See Point2Pixel function for conversions |
style = 0optional | number | See FontStyle flags |