File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/java.desktop/macosx/classes/sun/font Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2011, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2011, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -102,6 +102,17 @@ public long getNativeStrikePtr() {
102
102
final double [] glyphTx = new double [6 ];
103
103
desc .glyphTx .getMatrix (glyphTx );
104
104
105
+ for (int i = 0 ; i < 6 ; i ++) {
106
+ if (Double .isFinite (glyphTx [i ])) {
107
+ continue ;
108
+ }
109
+ for (int j = 0 ; j < 6 ; j ++) {
110
+ glyphTx [j ] = 0 ;
111
+ }
112
+ invDevTx = null ;
113
+ break ;
114
+ }
115
+
105
116
final double [] invDevTxMatrix = new double [6 ];
106
117
if (invDevTx == null ) {
107
118
invDevTxMatrix [0 ] = 1 ;
You can’t perform that action at this time.
0 commit comments