Skip to content

Commit 27f17a6

Browse files
committed
Adapt to changes in core.
1 parent 482b477 commit 27f17a6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/io/sf/carte/doc/style/css/awt/AWTStyleDatabase.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected float deviceResolutionFactor() {
119119
}
120120

121121
@Override
122-
public int getFontSizeFromIdentifier(String familyName, String fontSizeIdentifier) throws DOMException {
122+
public float getFontSizeFromIdentifier(String familyName, String fontSizeIdentifier) throws DOMException {
123123
// Normalize to device resolution
124124
float factor = Math.max(0.9f, deviceResolutionFactor());
125125
float sz;
@@ -140,7 +140,7 @@ public int getFontSizeFromIdentifier(String familyName, String fontSizeIdentifie
140140
} else {
141141
throw new DOMException(DOMException.INVALID_ACCESS_ERR, "Unknown size identifier: " + fontSizeIdentifier);
142142
}
143-
return Math.round(sz);
143+
return sz;
144144
}
145145

146146
@Override
@@ -195,11 +195,6 @@ public void setDefaultHeight(float defaultHeight) {
195195

196196
@Override
197197
public int getColorDepth() {
198-
return getPixelDepth();
199-
}
200-
201-
@Override
202-
public int getPixelDepth() {
203198
int bpc = 255;
204199
if (gConfiguration != null) {
205200
int[] comp = gConfiguration.getColorModel().getComponentSize();

0 commit comments

Comments
 (0)