Review for RT-35535 - better provide for embedded font fallback

David Hill David.Hill at Oracle.com
Tue Feb 18 17:09:31 PST 2014


Hi all,

I have a review request for
Jira:       https://javafx-jira.kenai.com/browse/RT-35535
Webrev: http://cr.openjdk.java.net/~ddhill/RT-35535/

This change is to support certain embedded cases where Linux does not have FontConfig installed (usually to save overhead).

For this case we support specifying a font directory and a means of listing the fonts there (logicalfonts.properties) (Thanks Phil!).

Our JDK usually has the Lucida fonts installed at ./jre/lib/fonts.

The set of changes:
    a) provides an option to ignore fontconfig -Dprism.useFontConfig=false for testing purposes
    b) corrects where we look for lib/fonts relative to jfxrt.jar (we are in lib/ext now)
    c) when lib/fonts is found and logicalfonts.properties is not, guess at one.
    d) when zero fonts are found, mention it so we have a clue why CSS failed.

Other existing properties of interest:
    -Dprism.fontsdir=/opt/fonts
    -Dprism.debugfonts=true

And.... my documenting fonts (at least on Linux) page on the Wiki:
    https://wiki.openjdk.java.net/display/OpenJFX/Font+Setup

-- 
David Hill <David.Hill at Oracle.com>
Java Embedded Development

"Basic research is what I am doing when I don't know what I am doing."
-- Wernher von Braun (1912 - 1977)



More information about the openjfx-dev mailing list