JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page.adobe
Class JCAdobeFontMap

java.lang.Object
  |
  +--java.util.ResourceBundle
        |
        +--java.util.ListResourceBundle
              |
              +--com.klg.jclass.page.adobe.JCAdobeFontMap

public class JCAdobeFontMap
extends ListResourceBundle

This resource bundle is used to map between a font name and an alias (the actual font to use). It's required because the the "Times" font, for example, can appear as,

and so on. There is no standard.

The font names (resource keys) must not have spaces. This is because PropertyResourceBundle cannot handle them. Replace spaces with underscores in the keys. Use a dash between the font name and its style. Leave the spaces in the alias names. Here are the default mappings.

 	{"Times",                       "Times-Roman"},
	{"Times-Bold",                  "Times-Bold"},
	{"Times-Italic",                "Times-Italic"},
	{"Times-BoldItalic",            "Times-BoldItalic"},

	{"TimesRoman",                  "Times-Roman"},
	{"TimesRoman-Bold",             "Times-Bold"},
	{"TimesRoman-Italic",           "Times-Italic"},
	{"TimesRoman-BoldItalic",       "Times-BoldItalic"},

	{"Times_New_Roman",             "Times-Roman"},
	{"Times_New_Roman-Bold",        "Times-Bold"},
	{"Times_New_Roman-Italic",      "Times-Italic"},
	{"Times_New_Roman-BoldItalic",  "Times-BoldItalic"},


	{"Helvetica",                   "Helvetica"},
	{"Helvetica-Bold",              "Helvetica-Bold"},
	{"Helvetica-Italic",            "Helvetica-Oblique"},
	{"Helvetica-BoldItalic",        "Helvetica-BoldOblique"},

	{"Arial",                       "Helvetica"},
	{"Arial-Bold",                  "Helvetica-Bold"},
	{"Arial-Italic",                "Helvetica-Oblique"},
	{"Arial-BoldItalic",            "Helvetica-BoldOblique"},

	{"Courier",                     "Courier"},
	{"Courier-Bold",                "Courier-Bold"},
	{"Courier-Italic",              "Courier-Oblique"},
	{"Courier-BoldItalic",          "Courier-BoldOblique"},

	{"Courier_New",                 "Courier"},
	{"Courier_New-Bold",            "Courier-Bold"},
	{"Courier_New-Italic",          "Courier-Oblique"},
	{"Courier_New-BoldItalic",      "Courier-BoldOblique"},

	{"Dialog",                      "Helvetica"},
	{"Dialog-Bold",                 "Helvetica-Bold"},
	{"Dialog-Italic",               "Helvetica-Oblique"},
	{"Dialog-BoldItalic",           "Helvetica-BoldOblique"},

	{"DialogInput",                 "Courier"},
	{"DialogInput-Bold",            "Courier-Bold"},
	{"DialogInput-Italic",          "Courier-Oblique"},
	{"DialogInput-BoldItalic",      "Courier-BoldOblique"},

	{"Serif",                       "Times-Roman"},
	{"Serif-Bold",                  "Times-Bold"},
	{"Serif-Italic",                "Times-Italic"},
	{"Serif-BoldItalic",            "Times-BoldItalic"},

	{"SansSerif",                   "Helvetica"},
	{"SansSerif-Bold",              "Helvetica-Bold"},
	{"SansSerif-Italic",            "Helvetica-Oblique"},
	{"SansSerif-BoldItalic",        "Helvetica-BoldOblique"},

 

Keys are case-sensitive. Styles must appear with these capitalizations: Bold, BoldItalic, or Italic. If the font is plain, do not specify a style.

Here are additional resources on adobe fonts:
ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/
http://www.adobe.com/supportservice/custsupport/SOLUTIONS/957a.htm
http://www.adobe.com/supportservice/custsupport/SOLUTIONS/407e.htm
http://www.adobe.com/supportservice/custsupport/SOLUTIONS/9762.htm


Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
JCAdobeFontMap()
           
 
Method Summary
 Object[][] getContents()
           
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCAdobeFontMap

public JCAdobeFontMap()
Method Detail

getContents

public Object[][] getContents()
Specified by:
getContents in class ListResourceBundle

Copyright © 2004 Quest Software Inc..
All rights reserved.