JDK14/Java14源码在线阅读

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/java.desktop/share/native/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/java.desktop/share/native/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,
./include/freetype/ftlcdfil.h and ./include/freetype/ftstroke.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
src/java.desktop/share/legal/freetype.md


/**代码未完, 请加载全部代码(NowJava.com).**/
展开阅读全文

关注时代Java

关注时代Java