• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. Font Setup

Page History

Versions Compared

Old Version 19

changes.mady.by.user David Hill

Saved on Aug 27, 2014

compared with

New Version 20

changes.mady.by.user David Hill

Saved on Aug 28, 2014

  • Previous Change: Difference between versions 18 and 19
  • Next Change: Difference between versions 20 and 21
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

JavaFX and Fonts

JavaFX will usually require no additional setup of fonts. However, some configurations or use cases require additional setup of fonts.

...

You can include a custom font in a JavaFX application JAR bundle. Refer to How to Embed Fonts. You can also load a web font by passing the URL to using the loadFont() method. Refer to the Font classin the JavaFX API Documentation.

Big Fonts

Fonts can be rendered by either using a cached raster (bitmap) or with a path. Generally fonts look better when rendered from a raster includes hinting and other tricks to make it look its best. JavaFX caches rasterized characters up to a size limit, and then uses paths for rendering after than. Adjusting this limit might improve performance for some types of applications that a limited set of very large characters, though at an impact to the texture cache. To change the default value of 80 pixels, use

    -Dprism.fontSizeLimit=xx

Embedded Device Fonts

On Linux, JavaFX will use fontconfig to find fonts. Fontconfig provides for a powerful means of identifying and finding installed fonts. It is usually associated with X11, but does not require it.

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 310, "requestCorrelationId": "94d3f1249c3ec36b"}