Mercurial > projects > dwt-win
comparison dwt/graphics/Font.d @ 203:8313535d74fa
Fix bug in FontMetrics, must be value type to hold values not by ref.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 14 Apr 2008 02:07:22 +0200 |
parents | 184ab53b7785 |
children | ab60f3309436 |
comparison
equal
deleted
inserted
replaced
202:1d129e5f6aa6 | 203:8313535d74fa |
---|---|
201 * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> | 201 * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> |
202 * </ul> | 202 * </ul> |
203 */ | 203 */ |
204 public FontData[] getFontData() { | 204 public FontData[] getFontData() { |
205 if (isDisposed()) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); | 205 if (isDisposed()) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); |
206 LOGFONT* logFont = new LOGFONT();; | 206 LOGFONT* logFont = new LOGFONT(); |
207 OS.GetObject(handle, LOGFONT.sizeof, logFont); | 207 OS.GetObject(handle, LOGFONT.sizeof, logFont); |
208 return [ cast(FontData) FontData.win32_new(logFont, device.computePoints(logFont, handle))]; | 208 return [ cast(FontData) FontData.win32_new(logFont, device.computePoints(logFont, handle))]; |
209 } | 209 } |
210 | 210 |
211 /** | 211 /** |