Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I add a physical font to the mapping of a logical font?

font Mapping physical
0
10 Posted

How do I add a physical font to the mapping of a logical font?

0

Since the mapping from logical fonts to physical fonts is implementation dependent, the answer varies. For Sun’s JRE 5.0, the easiest way is to install the font into the JRE’s lib/fonts/fallback directory – it will be automatically added as a fallback font to all logical fonts for 2D rendering. For AWT, you may need to modify a font configuration file – see the web page Font Configuration Files. For earlier versions of Sun’s JRE, you need to edit font.properties files – see the Font.properties Files documents for J2SE 1.4.2 and J2SE 1.3.1. Note however that editing these files is a modification of the JRE, and Sun does not support modified JREs. For other implementations, see their respective documentation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.