src/java.desktop/unix/classes/sun/awt/X11FontManager.java

Print this page




  23  * questions.
  24  */
  25 
  26 package sun.awt;
  27 
  28 import java.awt.GraphicsEnvironment;
  29 import java.io.BufferedReader;
  30 import java.io.File;
  31 import java.io.FileReader;
  32 import java.io.IOException;
  33 import java.io.StreamTokenizer;
  34 import java.util.HashMap;
  35 import java.util.HashSet;
  36 import java.util.Locale;
  37 import java.util.Map;
  38 import java.util.NoSuchElementException;
  39 import java.util.StringTokenizer;
  40 import java.util.Vector;
  41 
  42 import javax.swing.plaf.FontUIResource;
  43 import sun.awt.motif.MFontConfiguration;
  44 import sun.font.CompositeFont;
  45 import sun.font.FontManager;
  46 import sun.font.SunFontManager;
  47 import sun.font.FontConfigManager;
  48 import sun.font.FcFontConfiguration;
  49 import sun.font.FontAccess;
  50 import sun.font.FontUtilities;
  51 import sun.font.NativeFont;
  52 import sun.util.logging.PlatformLogger;
  53 
  54 /**
  55  * The X11 implementation of {@link FontManager}.
  56  */
  57 public final class X11FontManager extends FcFontManager {
  58 
  59     // constants identifying XLFD and font ID fields
  60     private static final int FOUNDRY_FIELD = 1;
  61     private static final int FAMILY_NAME_FIELD = 2;
  62     private static final int WEIGHT_NAME_FIELD = 3;
  63     private static final int SLANT_FIELD = 4;




  23  * questions.
  24  */
  25 
  26 package sun.awt;
  27 
  28 import java.awt.GraphicsEnvironment;
  29 import java.io.BufferedReader;
  30 import java.io.File;
  31 import java.io.FileReader;
  32 import java.io.IOException;
  33 import java.io.StreamTokenizer;
  34 import java.util.HashMap;
  35 import java.util.HashSet;
  36 import java.util.Locale;
  37 import java.util.Map;
  38 import java.util.NoSuchElementException;
  39 import java.util.StringTokenizer;
  40 import java.util.Vector;
  41 
  42 import javax.swing.plaf.FontUIResource;
  43 import sun.font.MFontConfiguration;
  44 import sun.font.CompositeFont;
  45 import sun.font.FontManager;
  46 import sun.font.SunFontManager;
  47 import sun.font.FontConfigManager;
  48 import sun.font.FcFontConfiguration;
  49 import sun.font.FontAccess;
  50 import sun.font.FontUtilities;
  51 import sun.font.NativeFont;
  52 import sun.util.logging.PlatformLogger;
  53 
  54 /**
  55  * The X11 implementation of {@link FontManager}.
  56  */
  57 public final class X11FontManager extends FcFontManager {
  58 
  59     // constants identifying XLFD and font ID fields
  60     private static final int FOUNDRY_FIELD = 1;
  61     private static final int FAMILY_NAME_FIELD = 2;
  62     private static final int WEIGHT_NAME_FIELD = 3;
  63     private static final int SLANT_FIELD = 4;