亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? font.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* Font.java -- Font object   Copyright (C) 1999, 2002, 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.awt;import gnu.java.awt.ClasspathToolkit;import gnu.java.awt.peer.ClasspathFontPeer;import java.awt.font.FontRenderContext;import java.awt.font.GlyphVector;import java.awt.font.LineMetrics;import java.awt.font.TextLayout;import java.awt.geom.AffineTransform;import java.awt.geom.Rectangle2D;import java.awt.peer.FontPeer;import java.io.IOException;import java.io.InputStream;import java.io.ObjectInputStream;import java.io.Serializable;import java.text.AttributedCharacterIterator;import java.text.CharacterIterator;import java.text.StringCharacterIterator;import java.util.HashMap;import java.util.Locale;import java.util.Map;import java.util.StringTokenizer;/** * This class represents a windowing system font. * * @author Aaron M. Renn (arenn@urbanophile.com) * @author Warren Levy (warrenl@cygnus.com) * @author Graydon Hoare (graydon@redhat.com) */public class Font implements Serializable{  /**   * Constant indicating a "plain" font.   */  public static final int PLAIN = 0;  /**   * Constant indicating a "bold" font.   */  public static final int BOLD = 1;  /**   * Constant indicating an "italic" font.   */  public static final int ITALIC = 2;  /**   * Constant indicating the baseline mode characteristic of Roman.   */  public static final int ROMAN_BASELINE = 0;  /**   * Constant indicating the baseline mode characteristic of Chinese.   */  public static final int CENTER_BASELINE = 1;  /**   * Constant indicating the baseline mode characteristic of Devanigri.   */  public static final int HANGING_BASELINE = 2;    /**   * Indicates to <code>createFont</code> that the supplied font data   * is in TrueType format.   *   * <p><em>Specification Note:</em> The Sun JavaDoc for J2SE 1.4 does   * not indicate whether this value also subsumes OpenType. OpenType   * is essentially the same format as TrueType, but allows to define   * glyph shapes in the same way as PostScript, using cubic bezier   * curves.   *   * @since 1.3   */  public static final int TRUETYPE_FONT = 0;  /**   * A flag for <code>layoutGlyphVector</code>, indicating that the   * orientation of a text run is from left to right.   *   * @since 1.4   */  public static final int LAYOUT_LEFT_TO_RIGHT = 0;  /**   * A flag for <code>layoutGlyphVector</code>, indicating that the   * orientation of a text run is from right to left.   *   * @since 1.4   */  public static final int LAYOUT_RIGHT_TO_LEFT = 1;  /**   * A flag for <code>layoutGlyphVector</code>, indicating that the   * text does not contain valid characters before the   * <code>start</code> position.  If this flag is set,   * <code>layoutGlyphVector</code> does not examine the text before   * <code>start</code>, even if this would be necessary to select the   * correct glyphs (e.g., for Arabic text).   *   * @since 1.4   */  public static final int LAYOUT_NO_START_CONTEXT = 2;  /**   * A flag for <code>layoutGlyphVector</code>, indicating that the   * text does not contain valid characters after the   * <code>limit</code> position.  If this flag is set,   * <code>layoutGlyphVector</code> does not examine the text after   * <code>limit</code>, even if this would be necessary to select the   * correct glyphs (e.g., for Arabic text).   *   * @since 1.4   */  public static final int LAYOUT_NO_LIMIT_CONTEXT = 4;  /**   * The logical name of this font.   *   * @since 1.0   */  protected String name;  /**   * The size of this font in points, rounded.   *   * @since 1.0   */  protected int size;  /**   * The size of this font in points.   *   * @since 1.0   */  protected float pointSize;  /**   * The style of this font -- PLAIN, BOLD, ITALIC or BOLD+ITALIC.   *   * @since 1.0   */  protected int style;//Serialization constant  private static final long serialVersionUID = -4206021311591459213L;  // The ClasspathToolkit-provided peer which implements this font  private transient ClasspathFontPeer peer;  /**   * Creates a <code>Font</code> object from the specified string, which   * is in one of the following formats:   * <p>   * <ul>   * <li>fontname-style-pointsize   * <li>fontname-style   * <li>fontname-pointsize   * <li>fontname   * </ul>   * <p>   * The style should be one of BOLD, ITALIC, or BOLDITALIC.  The default   * style if none is specified is PLAIN.  The default size if none   * is specified is 12.   *    * @param fontspec  a string specifying the required font (<code>null</code>    *                  permitted, interpreted as 'Dialog-PLAIN-12').   *    * @return A font.   */  public static Font decode(String fontspec)  {    if (fontspec == null)       fontspec = "Dialog-PLAIN-12";    String name = null;    int style = PLAIN;    int size = 12;    StringTokenizer st = new StringTokenizer(fontspec, "- ");    while (st.hasMoreTokens())      {        String token = st.nextToken();        if (name == null)          {            name = token;            continue;          }        if (token.toUpperCase().equals("BOLD"))          {            style = BOLD;            continue;          }        if (token.toUpperCase().equals("ITALIC"))          {            style = ITALIC;            continue;          }        if (token.toUpperCase().equals("BOLDITALIC"))          {            style = BOLD | ITALIC;            continue;          }        int tokenval = 0;        try          {            tokenval = Integer.parseInt(token);          }        catch (NumberFormatException e)          {            // Ignored.          }      if (tokenval != 0)        size = tokenval;    }    HashMap attrs = new HashMap();    ClasspathFontPeer.copyStyleToAttrs(style, attrs);    ClasspathFontPeer.copySizeToAttrs(size, attrs);    return getFontFromToolkit(name, attrs);  }  /* These methods delegate to the toolkit. */  static ClasspathToolkit tk()  {    return (ClasspathToolkit) Toolkit.getDefaultToolkit();  }  /* Every factory method in Font should eventually call this. */  static Font getFontFromToolkit(String name, Map attribs)  {    return tk().getFont(name, attribs);  }  /* Every Font constructor should eventually call this. */  static ClasspathFontPeer getPeerFromToolkit(String name, Map attrs)  {    return tk().getClasspathFontPeer(name, attrs);  }  /**   * Returns a <code>Font</code> object from the passed property name.   *   * @param propname The name of the system property.   * @param defval Value to use if the property is not found.   *   * @return The requested font, or <code>default</code> if the property    * not exist or is malformed.   */  public static Font getFont(String propname, Font defval)  {    String propval = System.getProperty(propname);    if (propval != null)      return decode(propval);    return defval;  }  /**   * Returns a <code>Font</code> object from the passed property name.   *   * @param propname The name of the system property.   *   * @return The requested font, or <code>null</code> if the property    * not exist or is malformed.   */  public static Font getFont(String propname)  {    return getFont(propname, (Font) null);  }  /**   * Initializes a new instance of <code>Font</code> with the specified   * attributes.   *   * @param name The name of the font.   * @param style The font style.   * @param size The font point size.   */  public Font(String name, int style, int size)  {    HashMap attrs = new HashMap();    ClasspathFontPeer.copyStyleToAttrs(style, attrs);    ClasspathFontPeer.copySizeToAttrs(size, attrs);    this.peer = getPeerFromToolkit(name, attrs);    this.size = size;    this.pointSize = (float) size;    if (name != null)      this.name = name;    else      this.name = peer.getName(this);  }  public Font(Map attrs)  {    this(null, attrs);  }  /* This extra constructor is here to permit ClasspathToolkit and to   build a font with a "logical name" as well as attrs.   ClasspathToolkit.getFont(String,Map) uses reflection to call this   package-private constructor. */  Font(String name, Map attrs)  {    // If attrs is null, setting it to an empty HashMap will give this    // Font default attributes.    if (attrs == null)      attrs = new HashMap();    peer = getPeerFromToolkit(name, attrs);    size = (int) peer.getSize(this);    pointSize = peer.getSize(this);    if (name != null)      this.name = name;    else      this.name = peer.getName(this);  }  /**   * Returns the logical name of the font.  A logical name is the name the   * font was constructed with. It may be the name of a logical font (one   * of 6 required names in all java environments) or it may be a face   * name.   *   * @return The logical name of the font.   *   * @see #getFamily()   * @see #getFontName()   */  public String getName ()  {    return peer.getName(this);  }  /**   * Returns the size of the font, in typographics points (1/72 of an inch),   * rounded to an integer.   *    * @return The font size   */  public int getSize()  {    return size;  }  /**   * Returns the size of the font, in typographics points (1/72 of an inch).   *    * @return The font size   */  public float getSize2D()  {    return pointSize;  }  /**   * Tests whether or not this is a plain font.  This will be true if   * and only if neither the bold nor the italics style is set.   *   * @return <code>true</code> if this is a plain font, <code>false</code>   * otherwise.   */  public boolean isPlain()  {    return peer.isPlain(this);   }  /**   * Tests whether or not this font is bold.   *   * @return <code>true</code> if this font is bold, <code>false</code>   * otherwise.   */  public boolean isBold()  {    return peer.isBold(this);  }  /**   * Tests whether or not this font is italic.   *   * @return <code>true</code> if this font is italic, <code>false</code>   * otherwise.   */  public boolean isItalic()  {    return peer.isItalic(this);  }  /**   * Returns the family name of this font. A family name describes a design   * or "brand name" (such as Helvetica or Palatino). It is less specific   * than a font face name (such as Helvetica Bold).   *   * @return A string containing the font family name.   *   * @since 1.2   *

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久一区二区| 欧美三区在线视频| 三级一区在线视频先锋 | 69久久夜色精品国产69蝌蚪网| 日韩一区二区三区视频在线观看| 亚洲电影中文字幕在线观看| 久久色.com| 欧美日韩国产色站一区二区三区| 国产精品私人影院| 91精品国产麻豆| 在线观看网站黄不卡| 激情深爱一区二区| 性久久久久久久久久久久| 国产精品久久久久久久久动漫| 91精品国产高清一区二区三区 | 青青草成人在线观看| 日韩理论电影院| 久久精品视频免费| 日韩色视频在线观看| 欧美午夜精品久久久久久超碰| 亚洲人午夜精品天堂一二香蕉| 94-欧美-setu| 国产盗摄精品一区二区三区在线| 国产精品每日更新在线播放网址 | 欧美在线影院一区二区| 国产成人在线免费| 蜜臀国产一区二区三区在线播放| 欧美一卡二卡三卡四卡| 欧美亚洲愉拍一区二区| 9色porny自拍视频一区二区| 国产伦精品一区二区三区视频青涩 | 精品国产制服丝袜高跟| 欧美一区二区精品在线| 欧美日韩在线综合| 欧美特级限制片免费在线观看| 秋霞成人午夜伦在线观看| 亚洲精品视频在线看| 中文字幕一区二区在线观看| 中国av一区二区三区| 国产亚洲综合色| 国产日韩av一区| 亚洲国产成人私人影院tom | 欧美精品一区二| 精品国产91久久久久久久妲己 | 中文字幕亚洲一区二区va在线| 91成人在线精品| 日本韩国一区二区三区| 色欧美片视频在线观看| 在线一区二区视频| 日本高清免费不卡视频| 91国产福利在线| 欧美日韩国产大片| 日韩一区二区三区视频在线| 日韩欧美一卡二卡| 久久久精品国产免费观看同学| 欧美性高清videossexo| 欧美日韩精品福利| 日韩欧美卡一卡二| 久久久99免费| 国产精品成人免费精品自在线观看| 欧美另类久久久品| 欧美va天堂va视频va在线| 久久综合九色综合欧美就去吻| 一本高清dvd不卡在线观看| 91激情在线视频| 51精品国自产在线| 午夜精品福利一区二区三区av | 欧美精品久久一区| 欧美xxx久久| 中文无字幕一区二区三区| 中文字幕一区二区三中文字幕| 日韩一区二区电影网| 久久综合久久综合久久| 国产日韩v精品一区二区| 最新久久zyz资源站| 天堂va蜜桃一区二区三区| 精品在线亚洲视频| 91在线观看成人| 欧美精品一二三| 久久日韩精品一区二区五区| 亚洲日本va午夜在线影院| 日韩高清欧美激情| 成人午夜激情视频| 欧美日本乱大交xxxxx| 久久精品在这里| 亚洲美女在线一区| 美女一区二区在线观看| 不卡在线观看av| 欧美精品乱码久久久久久| 日本一区二区免费在线观看视频 | 亚洲五月六月丁香激情| 美女视频一区二区三区| 91在线观看免费视频| 日韩一区二区三区在线视频| 日本一区二区三区久久久久久久久不 | 粉嫩一区二区三区性色av| 91成人在线免费观看| 国产亚洲精品中文字幕| 日日夜夜精品免费视频| 成人免费观看视频| 欧美成人性福生活免费看| 一区二区三区在线观看国产| 国产美女精品人人做人人爽| 欧美另类变人与禽xxxxx| 国产成人在线观看免费网站| 欧美日韩久久久一区| 1024成人网| 国产真实精品久久二三区| 欧美日本在线播放| 亚洲乱码国产乱码精品精小说| 亚洲一区二区三区爽爽爽爽爽| 一区二区三区免费网站| 高清国产午夜精品久久久久久| 国产成人综合亚洲91猫咪| 日韩一区二区三区四区| 亚洲精品视频一区| caoporen国产精品视频| 国产亚洲人成网站| 久久99精品久久久| 欧美一区二区三区思思人| 亚洲国产日日夜夜| 91捆绑美女网站| 中文字幕人成不卡一区| 成人动漫中文字幕| 中文字幕欧美国产| 国产大陆精品国产| 久久久不卡网国产精品一区| 激情综合五月婷婷| 日韩精品自拍偷拍| 另类欧美日韩国产在线| 3d动漫精品啪啪一区二区竹菊| 精品国产a毛片| 狠狠色丁香久久婷婷综| 欧美一区2区视频在线观看| 日韩精品电影一区亚洲| 777午夜精品视频在线播放| 亚洲va欧美va人人爽午夜| 欧美午夜电影一区| 亚洲成在线观看| 欧美精品一二三| 奇米精品一区二区三区四区| 日韩一级黄色片| 六月婷婷色综合| www日韩大片| 国产成人亚洲综合a∨猫咪| 中文子幕无线码一区tr| 99视频一区二区| 亚洲人成在线播放网站岛国 | 丁香六月综合激情| 国产嫩草影院久久久久| www..com久久爱| 亚洲精品国久久99热| 在线免费精品视频| 日日夜夜一区二区| 久久亚洲精品小早川怜子| 国产精品乡下勾搭老头1| 国产精品欧美一区喷水| 色天天综合色天天久久| 午夜电影网一区| 久久综合狠狠综合久久综合88| 亚洲第四色夜色| 日韩欧美国产小视频| 国产高清不卡二三区| 一区二区三区在线视频观看58| 国产精品资源在线看| 日本一区二区三区久久久久久久久不| 丝袜亚洲精品中文字幕一区| 日韩免费一区二区| 成人免费视频caoporn| 亚洲自拍偷拍九九九| 日韩精品电影在线观看| 久久久久久久久久久久久久久99| 午夜视频一区在线观看| 欧美精品一区二区久久久| 国产.欧美.日韩| 亚洲午夜激情av| 久久精品在这里| 欧美日韩在线三级| 国产成人精品免费网站| 夜夜爽夜夜爽精品视频| 精品av久久707| 色综合久久综合中文综合网| 青椒成人免费视频| 国产精品污www在线观看| 欧美专区在线观看一区| 狠狠色狠狠色综合系列| 久久福利资源站| 在线国产亚洲欧美| 国产精品1024| 亚洲成人激情社区| 国产精品日韩精品欧美在线| 欧美日韩免费视频| 成人免费视频国产在线观看| 日本最新不卡在线| 亚洲色图欧洲色图| 国产三区在线成人av| 制服丝袜亚洲播放| 色噜噜久久综合| 国产高清在线精品| 美国一区二区三区在线播放|