mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-04 05:00:31 +00:00
8168288: Dubious FontMetrics values from NullFontScaler
Reviewed-by: serb, bpb
This commit is contained in:
parent
82a75d6ce8
commit
b74c65bf0f
@ -36,8 +36,8 @@ class NullFontScaler extends FontScaler {
|
||||
boolean supportsCJK, int filesize) {}
|
||||
|
||||
StrikeMetrics getFontMetrics(long pScalerContext) {
|
||||
return new StrikeMetrics(0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
|
||||
0xf0,0xf0,0xf0,0xf0);
|
||||
return new StrikeMetrics(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
|
||||
0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
float getGlyphAdvance(long pScalerContext, int glyphCode) {
|
||||
@ -71,7 +71,7 @@ class NullFontScaler extends FontScaler {
|
||||
return getNullScalerContext();
|
||||
}
|
||||
|
||||
void invalidateScalerContext(long ppScalerContext) {
|
||||
void invalidateScalerContext(long pScalerContext) {
|
||||
//nothing to do
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user