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 11/*
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.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -102,6 +102,17 @@ public long getNativeStrikePtr() {
102102 final double [] glyphTx = new double [6 ];
103103 desc .glyphTx .getMatrix (glyphTx );
104104
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+
105116 final double [] invDevTxMatrix = new double [6 ];
106117 if (invDevTx == null ) {
107118 invDevTxMatrix [0 ] = 1 ;
You can’t perform that action at this time.
0 commit comments