File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
share/native/libfontmanager
unix/native/libfontmanager Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2023, 2024, 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
@@ -97,7 +97,6 @@ JDKEXPORT void jdk_hb_shape(
97
97
float devScale = 1.0f ;
98
98
if (getenv ("HB_NODEVTX" ) != NULL ) {
99
99
float xPtSize = euclidianDistance (matrix [0 ], matrix [1 ]);
100
- float yPtSize = euclidianDistance (matrix [2 ], matrix [3 ]);
101
100
devScale = xPtSize / ptSize ;
102
101
}
103
102
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2007, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2007, 2024 , 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
@@ -513,8 +513,6 @@ Java_sun_font_FreetypeFontScaler_createScalerContextNative(
513
513
double dmat [4 ], ptsz ;
514
514
FTScalerContext * context =
515
515
(FTScalerContext * ) calloc (1 , sizeof (FTScalerContext ));
516
- FTScalerInfo * scalerInfo =
517
- (FTScalerInfo * ) jlong_to_ptr (pScaler );
518
516
519
517
if (context == NULL ) {
520
518
free (context );
@@ -1652,7 +1650,6 @@ Java_sun_font_FreetypeFontScaler_getGlyphPointNative(
1652
1650
jlong pScaler , jint glyphCode , jint pointNumber ) {
1653
1651
1654
1652
FT_Outline * outline ;
1655
- jobject point = NULL ;
1656
1653
jfloat x = 0 , y = 0 ;
1657
1654
FTScalerContext * context =
1658
1655
(FTScalerContext * ) jlong_to_ptr (pScalerContext );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2003, 2012 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2003, 2024 , 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
@@ -267,7 +267,6 @@ Java_sun_font_NativeFont_getGlyphAdvance
267
267
xcs = AWTFontPerChar (xFont , glyphCode - context -> minGlyph );
268
268
advance = AWTCharAdvance (xcs );
269
269
} else {
270
- int direction , ascent , descent ;
271
270
AWTChar2b xChar ;
272
271
273
272
xChar .byte1 = (unsigned char ) (glyphCode >> 8 );
You can’t perform that action at this time.
0 commit comments