JDK-4488007 : Feature request: Dynamic loading of Type1 fonts using java.awt.Font.createFont.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-08-03
  • Updated: 2001-08-04
  • Resolved: 2001-08-04
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 08/03/2001


$ ./java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)



Feature request: Loading Type1 fonts using createFont.

Background:
It is currently only possible to create TrueType fonts using the method "public
static Font createFont(int, InputStream)" in java.awt.Font. It is, however,
possible to use Type1 fonts, but only if they are statically loaded at the time
of VM startup. For our project, we need to be able to dynamically load Type 1
fonts in a similar manner.

Implementation suggestion:
A new constant, TYPE1_FONT != TRUETYPE_FONT in java.awt.Font needs to be
created, and createFont(int, InputStream) needs to be able to dynamically load
such a font when the TYPE1_FONT constant is used.
(Review ID: 129357) 
======================================================================

Comments
WORK AROUND Name: bsC130419 Date: 08/03/2001 There is no acceptable workaround. A sort-of workaround is to put new Type 1 fonts in the font path, and restart the VM and application. ======================================================================
11-06-2004