-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #631 from keithc-ca/freetype
Include freetype source from openjdk
- Loading branch information
Showing
309 changed files
with
172,229 additions
and
7,777 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4,217 changes: 465 additions & 3,752 deletions
4,217
jdk/make/closed/autoconf/generated-configure.sh
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Tips and tasks when updating freetype sources to a newer version. | ||
----------------------------------------------------------------- | ||
|
||
The freetype sources here are just the subset needed by JDK. This is deliberate. | ||
When updating be sure to import only the same files. | ||
If a file is no longer present in freetype, or renamed this will be noticed | ||
during the copy. | ||
Occasionally there may be a new missing dependency if freetype introduces | ||
a new file or imports a file into these files that was not previously used. | ||
Import just what is needed. | ||
|
||
Before attempting compilation be sure to diff the JDK copy and the freetype copy | ||
of src/share/native/sun/awt/libfreetype/include/freetype/config/ftoption.h | ||
and re-apply the same edits made for the JDK option file. | ||
Also modules the JDK does not include must be commented out in | ||
src/share/native/sun/awt/libfreetype/include/freetype/config/ftmodule.h. | ||
Notably JDK is not using GZIP or LZW or BDF support which are on by default | ||
for the freetype distribution. | ||
If you don't make the edits the build will fail due to not copying the relevant | ||
sources. | ||
|
||
Use "expand" and "sed" to remove tabs and trailing white space from the imported | ||
sources. The current version of freetype is quite clean in this respect. | ||
None of files we import have tabs, and ./include/freetype/freetype.h, | ||
and ./include/freetype/ftlcdfil.h have the only trailing white space. | ||
If you forget this step, or aren't thorough, jcheck will remind you. | ||
|
||
Remember to update the freetype version identified in jdk/THIRD_PARTY_README. | ||
|
||
When updating, specify --with-freetype=bundled to test builds to | ||
expose build issues. | ||
This is important because presently on Linux the build | ||
defaults to linking against the system library and does not attempt | ||
to compile the sources. |
51 changes: 51 additions & 0 deletions
51
jdk/src/share/native/sun/awt/libfreetype/include/freetype/config/ftconfig.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/**************************************************************************** | ||
* | ||
* ftconfig.h | ||
* | ||
* ANSI-specific configuration file (specification only). | ||
* | ||
* Copyright (C) 1996-2022 by | ||
* David Turner, Robert Wilhelm, and Werner Lemberg. | ||
* | ||
* This file is part of the FreeType project, and may only be used, | ||
* modified, and distributed under the terms of the FreeType project | ||
* license, LICENSE.TXT. By continuing to use, modify, or distribute | ||
* this file you indicate that you have read the license and | ||
* understand and accept it fully. | ||
* | ||
*/ | ||
|
||
|
||
/************************************************************************** | ||
* | ||
* This header file contains a number of macro definitions that are used by | ||
* the rest of the engine. Most of the macros here are automatically | ||
* determined at compile time, and you should not need to change it to port | ||
* FreeType, except to compile the library with a non-ANSI compiler. | ||
* | ||
* Note however that if some specific modifications are needed, we advise | ||
* you to place a modified copy in your build directory. | ||
* | ||
* The build directory is usually `builds/<system>`, and contains | ||
* system-specific files that are always included first when building the | ||
* library. | ||
* | ||
* This ANSI version should stay in `include/config/`. | ||
* | ||
*/ | ||
|
||
#ifndef FTCONFIG_H_ | ||
#define FTCONFIG_H_ | ||
|
||
#include <ft2build.h> | ||
#include FT_CONFIG_OPTIONS_H | ||
#include FT_CONFIG_STANDARD_LIBRARY_H | ||
|
||
#include <freetype/config/integer-types.h> | ||
#include <freetype/config/public-macros.h> | ||
#include <freetype/config/mac-support.h> | ||
|
||
#endif /* FTCONFIG_H_ */ | ||
|
||
|
||
/* END */ |
Oops, something went wrong.