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

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

?? creating and deriving fonts.htm

?? 一個關(guān)于java字體設(shè)計的程序!
?? HTM
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0074)http://java.sun.com/docs/books/tutorial/2d/textandfonts/fontselection.html -->
<HTML><HEAD><TITLE>Creating and Deriving Fonts</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<SCRIPT language=JavaScript><!-- hidefunction openWin(term) {  url="../../information/glossary.html#" + term;  myWin= window.open(url, "Glossary",              "width=400,height=150,scrollbars=yes,status=no,toolbar=no,menubar=no");  myWin.focus();}//--></SCRIPT>

<META content="MSHTML 5.00.3813.800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff link=#000099><B><FONT size=-1>The Java</FONT><SUP><FONT 
size=-2>TM</FONT></SUP> <FONT size=-1>Tutorial</FONT></B> <BR>
<TABLE width=550 summary="layout">
  <TBODY>
  <TR>
    <TD align=left vAlign=center><A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/index.html" 
      target=_top><IMG align=center alt="Previous Page" border=0 height=26 
      src="Creating and Deriving Fonts.files/PreviousArrow.gif" width=26></A> <A 
      href="http://java.sun.com/docs/books/tutorial/2d/TOC.html#textandfonts" 
      target=_top><IMG align=center alt="Lesson Contents" border=0 height=26 
      src="Creating and Deriving Fonts.files/TOCIcon.gif" width=26></A> <A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/linebreakmeasure.html" 
      target=_top><IMG align=center alt="Next Page" border=0 height=26 
      src="Creating and Deriving Fonts.files/NextArrow.gif" width=26></A></TD>
    <TD align=middle vAlign=center><FONT size=-1><A 
      href="http://java.sun.com/docs/books/tutorial/index.html" 
      target=_top>Start of Tutorial</A> &gt; <A 
      href="http://java.sun.com/docs/books/tutorial/2d/index.html" 
      target=_top>Start of Trail</A> &gt; <A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/index.html" 
      target=_top>Start of Lesson</A> </FONT></TD>
    <TD align=right vAlign=center><FONT size=-1><A 
      href="http://java.sun.com/docs/books/tutorial/search.html" 
      target=_top>Search</A> <BR><A 
      href="http://java.sun.com/docs/books/tutorial/forms/sendusmail.html">Feedback 
      Form</A> </FONT></TD></TR></TBODY></TABLE><IMG align=bottom alt="" height=8 
src="Creating and Deriving Fonts.files/blueline.gif" width=550 
NATURALSIZEFLAG="3"> <BR><FONT size=-1><B>Trail</B>: 2D Graphics 
<BR><B>Lesson</B>: Working with Text and Fonts </FONT>
<H2>Creating and Deriving Fonts </H2>
<BLOCKQUOTE>You can display a text string with any font available on your 
  system in any size and style that you choose. To determine what fonts are 
  available on your system, you can call the 
  <CODE>GraphicsEnvironment.getAvailableFontFamilyNames</CODE> method. This 
  method returns an array of strings that contains the family names of the 
  available fonts. Any of the strings, along with a size and style argument, can 
  be used to create a new <CODE>Font</CODE> object. After creating a 
  <CODE>Font</CODE> object, you can reset its font family name, size or style to 
  create a custom font. </BLOCKQUOTE>
<H3>Example: FontSelection</H3>
<BLOCKQUOTE>The following applet allows you to change the font, size, and 
  style of the displayed text. 
  <P>
  <P>
  <CENTER><A 
  href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/FontSelectionDemo.html" 
  target=_blank><IMG align=bottom alt="Click this figure to run the applet." 
  height=257 src="Creating and Deriving Fonts.files/fontselection.gif" width=480 
  NATURALSIZEFLAG="3"></A><BR><EM>This is a picture of the applet's GUI. To run 
  the applet, click the picture. The applet will appear in a new browser 
  window.</EM></CENTER>
  <P></P>The complete code for this applet is in <A 
  href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/example-1dot2/FontSelection.java" 
  target=_blank><FONT color=#bb000f><CODE>FontSelection.java</CODE></FONT></A><A 
  href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/example-1dot2/FontSelection.java" 
  target=_blank><IMG align=absMiddle alt=" (in a .java source file)" border=0 
  height=11 src="Creating and Deriving Fonts.files/sourceIcon.gif" 
  width=11></A>. 
  <P>The <CODE>getAvailableFontFamilyNames</CODE> method of 
  <CODE>GraphicsEnvironment</CODE> returns the font family names of the fonts 
  available on your system. 
  <BLOCKQUOTE><PRE>GraphicsEnvironment gEnv =
    GraphicsEnvironment.getLocalGraphicsEnvironment();
String envfonts[] = gEnv.getAvailableFontFamilyNames();
Vector vector = new Vector();
for ( int i = 1; i &lt; envfonts.length; i++ ) {
   vector.addElement(envfonts[i]);
}
</PRE></BLOCKQUOTE>The initial <CODE>Font</CODE> object is created with style 
  <CODE>Font.PLAIN</CODE> and size 10. The other available styles are ITALIC, 
  BOLD and BOLD+ITALIC. 
  <BLOCKQUOTE><PRE>Font thisFont;
...

thisFont = new Font("Arial", Font.PLAIN, 10);
</PRE></BLOCKQUOTE>A new <CODE>Font</CODE> is created from the specified font 
  name, style and size. 
  <BLOCKQUOTE><PRE>public void changeFont(String f, int st, String si){
  Integer newSize = new Integer(si);
  int size = newSize.intValue();
  thisFont = new Font(f, st, size);
  repaint();
}
</PRE></BLOCKQUOTE>To use the same font family but change one or both of the 
  style and size attributes, you can call one of the <CODE>deriveFont</CODE> 
  methods. 
  <P>To control the font used to render text, you set the font attribute in the 
  <CODE>Graphics2D</CODE> context before rendering. The font attribute is set by 
  passing a <CODE>Font</CODE> object to the <CODE>setFont</CODE> method. In this 
  example, the font attribute is set to the newly constructed <CODE>Font</CODE> 
  object and then the string is drawn in the center of the Component using the 
  specified font. In the <CODE>paint</CODE> method, the font attribute of the 
  <CODE>Graphics2D</CODE> context is set to the new <CODE>Font</CODE>. The 
  string is drawn in the middle of the component with the new font. 
  <BLOCKQUOTE><PRE>g2.setFont(thisFont);
String change = "Pick a font, size, and style to change me";
FontMetrics metrics = g2.getFontMetrics();
int width = metrics.stringWidth( change );
int height = metrics.getHeight();
g2.drawString( change, w/2-width/2, h/2-height/2 );
</PRE></BLOCKQUOTE>
  <BLOCKQUOTE>
    <HR>
    <STRONG>Note:</STRONG>&nbsp; Due to bug # <A 
    href="http://developer.java.sun.com/developer/bugParade/bugs/4155852.html" 
    target=_blank><FONT color=#009bbb>4155852</FONT></A><A 
    href="http://developer.java.sun.com/developer/bugParade/bugs/4155852.html" 
    target=_blank><IMG align=absMiddle alt=" (outside of the tutorial)" border=0 
    height=11 src="Creating and Deriving Fonts.files/otherIcon.gif" 
    width=11></A>, FontSelection might not work properly for all font names 
    returned from the call to getFontFamilyNames. The sample might not respond 
    to changes in size or style and the text might not show up at all when some 
    fontnames are chosen. In general, Courier and Helvetica work fine. In the 
    meantime, check back periodically to see if these problems have been fixed. 
    <HR>
  </BLOCKQUOTE>
  <P></P></BLOCKQUOTE><IMG align=bottom alt="" height=8 
src="Creating and Deriving Fonts.files/blueline.gif" width=550 
NATURALSIZEFLAG="3"> <BR>
<TABLE width=550 summary="layout">
  <TBODY>
  <TR>
    <TD align=left vAlign=center><A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/index.html" 
      target=_top><IMG align=center alt="Previous Page" border=0 height=26 
      src="Creating and Deriving Fonts.files/PreviousArrow.gif" width=26></A> <A 
      href="http://java.sun.com/docs/books/tutorial/2d/TOC.html#textandfonts" 
      target=_top><IMG align=center alt="Lesson Contents" border=0 height=26 
      src="Creating and Deriving Fonts.files/TOCIcon.gif" width=26></A> <A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/linebreakmeasure.html" 
      target=_top><IMG align=center alt="Next Page" border=0 height=26 
      src="Creating and Deriving Fonts.files/NextArrow.gif" width=26></A></TD>
    <TD align=middle vAlign=center><FONT size=-1><A 
      href="http://java.sun.com/docs/books/tutorial/index.html" 
      target=_top>Start of Tutorial</A> &gt; <A 
      href="http://java.sun.com/docs/books/tutorial/2d/index.html" 
      target=_top>Start of Trail</A> &gt; <A 
      href="http://java.sun.com/docs/books/tutorial/2d/textandfonts/index.html" 
      target=_top>Start of Lesson</A> </FONT></TD>
    <TD align=right vAlign=center><FONT size=-1><A 
      href="http://java.sun.com/docs/books/tutorial/search.html" 
      target=_top>Search</A> <BR><A 
      href="http://java.sun.com/docs/books/tutorial/forms/sendusmail.html">Feedback 
      Form</A> </FONT></TD></TR></TBODY></TABLE>
<P><FONT size=-1><A 
href="http://java.sun.com/docs/books/tutorial/information/copyright.html">Copyright</A> 
1995-2004 Sun Microsystems, Inc. All rights reserved. </FONT></P></BODY></HTML>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧美日韩日本| 欧美精品久久天天躁| 91麻豆精品秘密| 色综合久久天天| 在线成人高清不卡| 久久久www免费人成精品| 最新成人av在线| 天天操天天色综合| 国产乱子伦一区二区三区国色天香 | 亚洲午夜国产一区99re久久| 首页国产欧美久久| 国产成人在线免费观看| 欧美性受xxxx黑人xyx| 精品日产卡一卡二卡麻豆| 国产精品萝li| 午夜视频久久久久久| 高清不卡在线观看| 91久久精品网| 久久久电影一区二区三区| 亚洲一级二级三级| 国产乱码精品一区二区三区五月婷| 色av成人天堂桃色av| 2021国产精品久久精品| 亚洲乱码国产乱码精品精小说| 日本成人中文字幕在线视频| 91在线丨porny丨国产| 日韩亚洲欧美中文三级| 亚洲精品乱码久久久久久日本蜜臀| 亚洲在线视频免费观看| 粉嫩一区二区三区性色av| 3atv一区二区三区| 亚洲免费观看在线视频| 国产剧情av麻豆香蕉精品| 欧美日韩综合在线| 国产精品进线69影院| 狠狠久久亚洲欧美| 在线成人午夜影院| 一区二区三区在线视频免费| 国产美女精品人人做人人爽| 3d成人h动漫网站入口| 亚洲卡通欧美制服中文| 国产不卡视频一区二区三区| 日韩午夜激情免费电影| 亚洲一卡二卡三卡四卡五卡| 岛国av在线一区| 欧美www视频| 日韩av午夜在线观看| 欧美色图片你懂的| 中文字幕在线视频一区| 国产精品香蕉一区二区三区| 日韩欧美国产三级| 日韩国产精品大片| 在线观看免费亚洲| 亚洲伦理在线精品| 北条麻妃一区二区三区| 中文字幕免费观看一区| 国产乱码精品一区二区三区av | 天天综合色天天综合| 色悠悠亚洲一区二区| 国产精品女同一区二区三区| 国产精品一区二区免费不卡 | 奇米精品一区二区三区四区| 色香色香欲天天天影视综合网| 国产精品免费人成网站| 国产成人一级电影| 2014亚洲片线观看视频免费| 另类的小说在线视频另类成人小视频在线| 欧美色综合久久| 亚洲一区二区三区小说| 日本久久一区二区| 亚洲激情校园春色| 欧美在线免费观看亚洲| 亚洲一区二区偷拍精品| 在线看日本不卡| 亚洲一区中文日韩| 欧美日韩免费观看一区二区三区| 亚洲一二三四在线观看| 欧美性色aⅴ视频一区日韩精品| 亚洲综合成人网| 欧美日韩国产另类一区| 日韩黄色在线观看| 日韩一级完整毛片| 狠狠色狠狠色综合| 久久久国际精品| 成人高清伦理免费影院在线观看| 国产精品免费视频网站| 色女孩综合影院| 亚洲国产精品麻豆| 欧美一级二级三级乱码| 国产在线播放一区二区三区| 中文字幕不卡在线播放| av一区二区三区黑人| 亚洲人午夜精品天堂一二香蕉| 欧美在线色视频| 日本成人在线网站| 26uuu精品一区二区三区四区在线| 国产福利视频一区二区三区| 国产精品高潮久久久久无| 欧美在线观看视频在线| 日本欧美久久久久免费播放网| 精品国产免费一区二区三区香蕉| 国产盗摄女厕一区二区三区| 亚洲欧洲精品天堂一级| 欧美性大战久久久久久久蜜臀| 欧美a级一区二区| 久久久99久久| 色综合久久88色综合天天免费| 亚洲va欧美va人人爽午夜| 欧美成人video| 99视频精品全部免费在线| 午夜精品影院在线观看| 精品国产网站在线观看| 91视频观看免费| 日本免费新一区视频| 国产精品视频一二| 欧美日韩视频不卡| 国产成人综合网| 亚洲成人免费在线观看| 国产人久久人人人人爽| 欧美中文字幕一二三区视频| 国产一区二区网址| 亚洲色图一区二区三区| 精品免费日韩av| 色呦呦日韩精品| 国内精品久久久久影院薰衣草 | 欧美视频在线不卡| 国产一区二区三区av电影| 一二三区精品福利视频| 26uuu色噜噜精品一区| 欧美在线小视频| 国产成人免费视频精品含羞草妖精| 一区二区久久久久久| 国产亚洲欧美日韩俺去了| 欧美久久一区二区| 不卡欧美aaaaa| 久久99精品国产麻豆不卡| 亚洲精品欧美专区| 久久一夜天堂av一区二区三区| 欧美性xxxxxxxx| 成人做爰69片免费看网站| 日韩—二三区免费观看av| 亚洲视频电影在线| 2024国产精品| 欧美日韩国产小视频| 成人激情小说乱人伦| 麻豆成人久久精品二区三区小说| 亚洲欧美激情视频在线观看一区二区三区| 欧美不卡一区二区| 欧美日韩国产影片| 日本精品裸体写真集在线观看| 国产精品亚洲专一区二区三区| 亚洲成人综合视频| 亚洲色图制服丝袜| 欧美激情在线看| 欧美不卡一区二区三区| 3d成人h动漫网站入口| 欧美综合久久久| 92精品国产成人观看免费| 丁香婷婷综合色啪| 国产一区不卡视频| 久久激情五月激情| 日韩国产高清影视| 亚洲v精品v日韩v欧美v专区| 一区二区三区在线视频播放| 国产精品盗摄一区二区三区| 久久久亚洲精华液精华液精华液| 欧美一区二区视频在线观看2020 | 亚洲色图一区二区三区| 国产精品麻豆99久久久久久| 久久久www成人免费无遮挡大片| 日韩欧美资源站| 欧美疯狂性受xxxxx喷水图片| 欧美在线免费视屏| 91蝌蚪porny| 99精品在线免费| 99免费精品视频| 成+人+亚洲+综合天堂| 成人国产亚洲欧美成人综合网| 国产成人鲁色资源国产91色综| 国产精一区二区三区| 国产毛片精品一区| 国产精品亚洲第一区在线暖暖韩国| 国模一区二区三区白浆| 国产精品亚洲人在线观看| 国产精品一二三四| 成人综合婷婷国产精品久久 | 国产日韩精品一区二区三区 | 国产成人免费视频一区| 国产成人av一区二区| 成人在线视频一区二区| 不卡电影一区二区三区| 色哟哟在线观看一区二区三区| 色偷偷88欧美精品久久久| 欧洲激情一区二区| 欧美性猛交xxxx乱大交退制版| 欧美日韩一卡二卡| 777奇米四色成人影色区| 欧美videos大乳护士334| 久久久精品免费免费| 日本一区二区三区电影|