|
Lines 1-5
Link Here
|
| 1 |
/****************************************************************************** |
1 |
/****************************************************************************** |
| 2 |
* Copyright (c) 2007, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2007, 2009 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 63-69
Link Here
|
| 63 |
* Gets a string's extents, converted by the mapmode |
63 |
* Gets a string's extents, converted by the mapmode |
| 64 |
*/ |
64 |
*/ |
| 65 |
public Dimension getStringExtents(String s, Font f) { |
65 |
public Dimension getStringExtents(String s, Font f) { |
| 66 |
Dimension extents = new Dimension(getStringDimension(s, f, true)); |
66 |
Dimension extents = new Dimension(getStringDimension(s, f, false)); |
| 67 |
applyItalicBugHack(s, f, extents); |
67 |
applyItalicBugHack(s, f, extents); |
| 68 |
applyMapModeConversion(extents); |
68 |
applyMapModeConversion(extents); |
| 69 |
return extents; |
69 |
return extents; |
|
Lines 73-79
Link Here
|
| 73 |
* Gets text's extents, converted by the mapmode |
73 |
* Gets text's extents, converted by the mapmode |
| 74 |
*/ |
74 |
*/ |
| 75 |
public Dimension getTextExtents(String s, Font f) { |
75 |
public Dimension getTextExtents(String s, Font f) { |
| 76 |
Dimension extents = new Dimension(getTextDimension(s, f, true)); |
76 |
Dimension extents = new Dimension(getTextDimension(s, f, false)); |
| 77 |
applyItalicBugHack(s, f, extents); |
77 |
applyItalicBugHack(s, f, extents); |
| 78 |
applyMapModeConversion(extents); |
78 |
applyMapModeConversion(extents); |
| 79 |
return extents; |
79 |
return extents; |