Skip to content

Commit 7cca626

Browse files
Jiří Vaněkgnu-andrew
authored andcommitted
8261170: Upgrade to FreeType 2.10.4
8222362: Upgrade to Freetype 2.10.0 8227324: Upgrade to freetype 2.10.1 8247867: Upgrade to freetype 2.10.2 Reviewed-by: andrew Backport-of: 33a580c2832bf06dc14972a847c56b87efe9b013
1 parent 5452da9 commit 7cca626

File tree

326 files changed

+38823
-34601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+38823
-34601
lines changed

THIRD_PARTY_README

Lines changed: 104 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ included with JRE 8, JDK 8, and OpenJDK 8.
10331033

10341034
--- begin of LICENSE ---
10351035

1036-
## The FreeType Project: Freetype v2.9
1036+
## The FreeType Project: Freetype v2.10.4
10371037

10381038

10391039
### FreeType Notice
@@ -1568,6 +1568,109 @@ consider it more useful to permit linking proprietary applications with the
15681568
library. If this is what you want to do, use the GNU Library General
15691569
Public License instead of this License.
15701570

1571+
#########################################################################
1572+
1573+
--- fthash.c and fthash.h are covered by the following notices ---
1574+
1575+
/*
1576+
* Copyright 2000 Computing Research Labs, New Mexico State University
1577+
* Copyright 2001-2015
1578+
* Francesco Zappa Nardelli
1579+
*
1580+
* Permission is hereby granted, free of charge, to any person obtaining a
1581+
* copy of this software and associated documentation files (the "Software"),
1582+
* to deal in the Software without restriction, including without limitation
1583+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
1584+
* and/or sell copies of the Software, and to permit persons to whom the
1585+
* Software is furnished to do so, subject to the following conditions:
1586+
*
1587+
* The above copyright notice and this permission notice shall be included in
1588+
* all copies or substantial portions of the Software.
1589+
*
1590+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1591+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1592+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1593+
* THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY
1594+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
1595+
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
1596+
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1597+
*/
1598+
1599+
/**************************************************************************
1600+
*
1601+
* This file is based on code from bdf.c,v 1.22 2000/03/16 20:08:50
1602+
*
1603+
* taken from Mark Leisher's xmbdfed package
1604+
*
1605+
*/
1606+
1607+
--- FreeType 2 PSaux module is covered by the following notices ---
1608+
1609+
Copyright 2006-2014 Adobe Systems Incorporated.
1610+
1611+
This software, and all works of authorship, whether in source or
1612+
object code form as indicated by the copyright notice(s) included
1613+
herein (collectively, the "Work") is made available, and may only be
1614+
used, modified, and distributed under the FreeType Project License,
1615+
LICENSE.TXT. Additionally, subject to the terms and conditions of the
1616+
FreeType Project License, each contributor to the Work hereby grants
1617+
to any individual or legal entity exercising permissions granted by
1618+
the FreeType Project License and this section (hereafter, "You" or
1619+
"Your") a perpetual, worldwide, non-exclusive, no-charge,
1620+
royalty-free, irrevocable (except as stated in this section) patent
1621+
license to make, have made, use, offer to sell, sell, import, and
1622+
otherwise transfer the Work, where such license applies only to those
1623+
patent claims licensable by such contributor that are necessarily
1624+
infringed by their contribution(s) alone or by combination of their
1625+
contribution(s) with the Work to which such contribution(s) was
1626+
submitted. If You institute patent litigation against any entity
1627+
(including a cross-claim or counterclaim in a lawsuit) alleging that
1628+
the Work or a contribution incorporated within the Work constitutes
1629+
direct or contributory patent infringement, then any patent licenses
1630+
granted to You under this License for that Work shall terminate as of
1631+
the date such litigation is filed.
1632+
1633+
By using, modifying, or distributing the Work you indicate that you
1634+
have read and understood the terms and conditions of the
1635+
FreeType Project License as well as those provided in this section,
1636+
and you accept them fully.
1637+
1638+
#########################################################################
1639+
1640+
1641+
--- FreeType 2 PSaux module is covered by the following notices ---
1642+
1643+
Copyright 2006-2014 Adobe Systems Incorporated.
1644+
1645+
This software, and all works of authorship, whether in source or
1646+
object code form as indicated by the copyright notice(s) included
1647+
herein (collectively, the "Work") is made available, and may only be
1648+
used, modified, and distributed under the FreeType Project License,
1649+
LICENSE.TXT. Additionally, subject to the terms and conditions of the
1650+
FreeType Project License, each contributor to the Work hereby grants
1651+
to any individual or legal entity exercising permissions granted by
1652+
the FreeType Project License and this section (hereafter, "You" or
1653+
"Your") a perpetual, worldwide, non-exclusive, no-charge,
1654+
royalty-free, irrevocable (except as stated in this section) patent
1655+
license to make, have made, use, offer to sell, sell, import, and
1656+
otherwise transfer the Work, where such license applies only to those
1657+
patent claims licensable by such contributor that are necessarily
1658+
infringed by their contribution(s) alone or by combination of their
1659+
contribution(s) with the Work to which such contribution(s) was
1660+
submitted. If You institute patent litigation against any entity
1661+
(including a cross-claim or counterclaim in a lawsuit) alleging that
1662+
the Work or a contribution incorporated within the Work constitutes
1663+
direct or contributory patent infringement, then any patent licenses
1664+
granted to You under this License for that Work shall terminate as of
1665+
the date such litigation is filed.
1666+
1667+
By using, modifying, or distributing the Work you indicate that you
1668+
have read and understood the terms and conditions of the
1669+
FreeType Project License as well as those provided in this section,
1670+
and you accept them fully.
1671+
1672+
#########################################################################
1673+
15711674
```
15721675

15731676
--- end of LICENSE ---

jdk/src/share/native/sun/awt/libfreetype/UPDATING.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,24 @@ Import just what is needed.
1212
Before attempting compilation be sure to diff the JDK copy and the freetype copy
1313
of src/java.desktop/share/native/libfreetype/include/freetype/config/ftoption.h
1414
and re-apply the same edits made for the JDK option file.
15+
Also modules the JDK does not include must be commented out in
16+
src/java.desktop/share/native/libfreetype/include/freetype/config/ftmodule.h.
1517
Notably JDK is not using GZIP or LZW or BDF support which are on by default
1618
for the freetype distribution.
1719
If you don't make the edits the build will fail due to not copying the relevant
1820
sources.
1921

2022
Use "expand" and "sed" to remove tabs and trailing white space from the imported
2123
sources. The current version of freetype is quite clean in this respect.
22-
./src/base/md5.h and ./src/base/md5.c are the only files with tabs,
23-
and ./include/freetype/ftdriver.h has the only trailing white space.
24+
None of files we import have tabs, and ./include/freetype/freetype.h,
25+
and ./include/freetype/ftlcdfil.h have the only trailing white space.
2426
If you forget this step, or aren't thorough, jcheck will remind you.
2527

2628
Remember to update the freetype version identified in
2729
src/java.desktop/share/legal/freetype.md
30+
31+
When updating specify --with-freetype=bundled to test builds to
32+
expose build issues.
33+
This is important because presently on Linux and Solaris the build
34+
defaults to linking against the system library and does not attempt
35+
to compile the sources.

0 commit comments

Comments
 (0)