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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ch13.htm

?? 一天之內(nèi)學(xué)會(huì)VC#. 主要介紹VC#的各種應(yīng)用和示例
?? HTM
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD>		<TITLE>Teach Yourself Visual C++&#174; 5 in 24 Hours -- Hour 13 -- Fonts</TITLE></HEAD><BODY TEXT="#000000" BGCOLOR="#FFFFFF"><CENTER><H1><IMG SRC="../button/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM" BORDER="0"><BR><FONT COLOR="#000077">Teach Yourself Visual C++&#174; 5 in 24 Hours</FONT></H1></CENTER><CENTER><P><A HREF="../ch12/ch12.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch14/ch14.htm"><IMGSRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> <HR></CENTER><CENTER><H1><FONT COLOR="#000077">- Hour 13 -<BR>Fonts</FONT></H1></CENTER><P>Fonts define the symbols and characters used to display text in a Windows program.In this hour, you will learn<UL>	<LI>The basic attributes that are available for fonts<BR>	<BR>		<LI>How to use the Common Font dialog box provided as part of Windows<BR>	<BR>		<LI>MFC class library support for creating and managing fonts</UL><P>At the end of the hour is some sample code that extends the DCTest example toshow how fonts are used in a Windows program.<H2><FONT COLOR="#000077"><B>What Are Fonts?</B></FONT></H2><P>Fonts are GDI objects, much like the pens and brushes discussed in Hour 12, &quot;UsingPens and Brushes,&quot; and are used to define the characters used for output ina Windows program. A collection of characters and other symbols that share the sameattributes is a <I>font</I>.<BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>Strictly speaking,	fonts are not necessary for most programs written for Windows. A default font is	selected into every device context automatically, and it can work just fine for most	applications. However, almost every program can benefit from using fonts that have	been selected to suit its specific needs. <HR></BLOCKQUOTE><P>In this hour you see some terms that are unique to programming with fonts.</P><P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>A <I>glyph</I> is an individualcharacter.</P><P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B><I>Font pitch</I> refersto the width of individual characters; <I>fixed pitch</I> means that each characterhas the same width; <I>variable pitch</I> means that some characters will be widerthan others.</P><P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>A <I>serif</I> is the smallcross at the ends of some characters. A font with a serif has short crosses at theends of lines making up the font; Times New Roman is such a <I>serif font</I>. Afont without serifs is often called a <I>sans-serif font</I>. Figure 13.1 shows examplesof a serif and a sans-serif font.</P><P><A NAME="01"></A><A HREF="01.htm"><B>Figure 13.1.</B></A> <BR><I>Serif and sans-serif fonts.</I></P><P>Fonts are maintained by Windows. Information about each currently installed fontis stored in a system table known as the <I>font table</I>.</P><P>There are three different types of fonts; each type has different capabilities:<UL>	<LI><I>Raster fonts</I> are created from bitmaps and are stored in resource files	with an <TT>.FON</TT> extension. Each bitmap is created for a specific screen resolution	and is used by Windows to map out exactly how the glyph will look when it is displayed.<BR>	<BR>		<LI><I>Vector fonts</I> consist of a series of endpoints that are connected together	to create each glyph and also are found in files with an <TT>.FON</TT> extension.	Unlike raster fonts, vector fonts are device independent, but they are the slowest	of the three font types.<BR>	<BR>		<LI><I>TrueType</I> <I>fonts</I> are the most flexible of all Windows fonts. First	introduced in Windows 3.1, TrueType fonts consist of line and curve information,	as well as hints about each glyph. Each TrueType font is stored in two files: one	with an <TT>.FOT</TT> extension, the other with a <TT>.TTF</TT> extension.</UL><BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>Scaleable fonts	that can display italic, bold, or underlined text give a program an extra amount	of usability. Most printers supported by Windows also allow TrueType fonts to be	displayed on a printer exactly as they are on a video screen; this is an extra advantage	because it greatly simplifies the work required for printing. <HR></BLOCKQUOTE><P>Fonts are also arranged into six families that define the general attributes ofthe font. Fonts in the same family share similar strokes, serifs, and pitch. Thefollowing are the six font families:<UL>	<LI><I>Decorative</I> specifies novelty fonts such as Old English.<BR>	<BR>		<LI><I>Dontcare</I> specifies a generic group of fonts; either the font family information	doesn't exist or the font family is unimportant.<BR>	<BR>		<LI><I>Modern</I> specifies fonts that have fixed pitch and may or may not have serifs.	Courier New is an example of a Modern font.<BR>	<BR>		<LI><I>Roman</I> specifies fonts that have variable pitch and have serifs, such as	Times New Roman.<BR>	<BR>		<LI><I>Script</I> specifies fonts that are similar to handwriting.<BR>	<BR>		<LI><I>Swiss</I> specifies a font that is fixed pitch and doesn't have serifs, such	as Arial.</UL><H2><FONT COLOR="#000077"><B>Specifying Font Attributes</B></FONT></H2><P>Like other GDI objects, the easiest way to use a font is to use the MFC classlibrary. Like other GDI objects, fonts must be used with a device context, and theyare influenced by the current state of the device context, such as mapping mode andcolor definitions. When you're working with text output, the <TT>CFont</TT> classhelps make using a font easy.</P><P>There are two basic ways to use a font in your program:<UL>	<LI>You can specify exactly what kind of font should be used.<BR>	<BR>		<LI>You can specify font general attributes and let Windows select a font for you.</UL><P>In addition to the font families discussed earlier in this hour, you can use othergeneral attributes to specify a font. Many font attributes exist, mainly becausethere are so many different ways to display characters in a program written for Windows.Don't worry; after you've used fonts a few times, you'll be able to create fontswith no trouble at all. Later in the hour you will build some examples to learn howyou can use these attributes.<H3><FONT COLOR="#000077"><B>The Font Height and Width</B></FONT></H3><P>You can specify the height of the font using one of the following methods:<UL>	<LI>If a height greater than zero is specified, Windows tries to match the requested	height with one of the available fonts, and the font is mapped using logical units.<BR>	<BR>		<LI>If a font height of zero is specified, a reasonable default font is used. In	this case, &quot;reasonable&quot; is defined by Windows.<BR>	<BR>		<LI>If the specified height is a negative number, the font is mapped using hardware	units. Windows searches for a font that matches the absolute value of the size provided.</UL><P>Logical units normally are used for screen display, and physical units are normallyused for printing. In Hour 21, &quot;Printing,&quot; you use <TT>MM_TWIPS</TT> tocreate fonts based on device units.<BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>The width of a	font normally is set to zero, which tells Windows to select an appropriate default	width. However, in some cases you might want to specify your own font width to display	compressed or elongated text. <HR></BLOCKQUOTE><H3><FONT COLOR="#000077"><B>The Font Character Set</B></FONT></H3><P>Every font is made up of a large number of characters and other symbols that canbe displayed. The actual symbols that are contained in a font depend on the characterset supported by that font. These three character sets are available:<UL>	<LI><TT>ANSI_CHARSET</TT>: Used for most output when programming in Windows. This	is the character set you're most likely to use. The symbol <TT>ANSI_CHARSET</TT>	is defined as equal to zero, which makes it easy to use as a default parameter.<BR>	<BR>		<LI><TT>OEM_CHARSET</TT>: Used mainly for console-mode programs; it is almost identical	to the ANSI character set. This character set is system dependent and can't be used	reliably for every machine capable of running Windows. Some of the low- and high-numbered	characters are different, but these are rarely used in Windows.<BR>	<BR>		<LI><TT>SYMBOL_CHARSET</TT>: Used to display symbols such as the ones used in math	formulas.</UL><H3><FONT COLOR="#000077"><B>Attributes that Affect Font Output</B></FONT></H3><P>Three parameters specify output attributes of the selected font: <I>output precision</I>,<I>clipping precision</I>, and <I>output quality</I>.</P><P>Output precision is used to specify how closely the font returned by Windows mustmatch the requested font. A range of options is available, from allowing Windowsto select a reasonable match to requiring an exact match.<UL>	<LI><TT>OUT_DEFAULT_PRECIS</TT>: Used when Windows can choose a &quot;reasonable&quot;	font. This is the option selected most often and is equivalent to using zero as a	parameter.<BR>	<BR>		<LI><TT>OUT_STRING_PRECIS</TT>: Used to specify that the font chosen by Windows must	match the requested font's size.<BR>	<BR>		<LI><TT>OUT_CHARACTER_PRECIS</TT>: Used to specify that the font must match all requested	attributes except orientation and escapement, which are defined later in the section	&quot;Other Font Attributes.&quot;<BR>	<BR>		<LI><TT>OUT_STROKE_PRECIS</TT>: Used to specify that the font chosen must exactly	match the requested font.</UL><P>Clipping precision is used to specify how characters are treated when they lieon a clipping boundary. There are three options:<UL>	<LI><TT>CLIP_DEFAULT_PRECIS</TT>: Allows Windows to select a &quot;reasonable&quot;	font. This is the option selected most often and is equal to zero.<BR>	<BR>		<LI><TT>CLIP_CHARACTER_PRECIS</TT>: Requires Windows to select a font that allows	individual characters to be clipped if any part of the character lies outside the	clipping region.<BR>	<BR>		<LI><TT>CLIP_STROKE_PRECIS</TT>: Requires Windows to choose a font that allows portions	of an individual character to be clipped if a character falls on the clipping boundary.</UL><P>The output quality of the font refers to the degree to which GDI routines must

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩精品一区| 日日摸夜夜添夜夜添国产精品| 欧美三级中文字幕在线观看| 久久精品99国产国产精| 亚洲欧美区自拍先锋| 精品乱人伦小说| 欧美日韩mp4| 91天堂素人约啪| 国内偷窥港台综合视频在线播放| 亚洲一本大道在线| 国产精品美女久久久久久久久| 日韩一区二区麻豆国产| 欧日韩精品视频| av男人天堂一区| 国内久久精品视频| 蜜桃视频在线观看一区二区| 一区二区三区国产| 国产精品久久夜| 日本一区免费视频| 精品国免费一区二区三区| 欧美视频第二页| 色系网站成人免费| 99视频精品免费视频| 成人在线一区二区三区| 国产精品一二三在| 国产高清亚洲一区| 国产成人精品综合在线观看 | caoporen国产精品视频| 久草在线在线精品观看| 欧美aaaaa成人免费观看视频| 一区二区三区**美女毛片| 亚洲欧洲性图库| 国产欧美一区二区在线观看| 久久青草欧美一区二区三区| 欧美xxxx老人做受| 欧美成人午夜电影| 精品久久一区二区三区| 日韩精品在线一区二区| 日韩欧美高清一区| 精品日本一线二线三线不卡| 亚洲精品在线电影| 26uuu成人网一区二区三区| 337p粉嫩大胆噜噜噜噜噜91av| 精品区一区二区| 国产午夜精品理论片a级大结局| 久久久久久亚洲综合| 久久久亚洲国产美女国产盗摄 | 亚洲激情自拍视频| 亚洲成人一二三| 亚洲风情在线资源站| 偷拍亚洲欧洲综合| 久久99国产精品麻豆| 国产激情视频一区二区三区欧美| 岛国精品一区二区| 91小视频在线| 欧美日韩久久久久久| 日韩欧美激情四射| 久久久综合激的五月天| 国产精品毛片无遮挡高清| 一区二区三区日韩精品视频| 亚洲福利电影网| 精彩视频一区二区三区| 成人午夜视频免费看| 在线精品视频免费播放| 日韩一区二区三免费高清| 久久午夜免费电影| 成人欧美一区二区三区1314 | 亚洲一区二区三区中文字幕| 亚洲成人一区二区| 国产九九视频一区二区三区| www.在线成人| 欧美日本精品一区二区三区| 精品捆绑美女sm三区| 亚洲视频一区二区在线| 午夜欧美电影在线观看| 国产精品66部| 欧美性大战久久久久久久| 日韩欧美中文一区二区| 国产精品素人视频| 三级在线观看一区二区| 成人av网址在线观看| 欧美喷潮久久久xxxxx| 国产欧美一区二区精品性色超碰| 亚洲精品自拍动漫在线| 久久精品国产亚洲5555| 成人av电影在线网| 日韩一区二区三区av| 亚洲美女视频在线| 国产麻豆欧美日韩一区| 欧美日韩免费一区二区三区| 国产丝袜美腿一区二区三区| 亚洲6080在线| 成人ar影院免费观看视频| 欧美一级片在线看| 亚洲三级免费观看| 国产激情一区二区三区桃花岛亚洲| 欧美视频中文字幕| 亚洲欧美综合网| 韩国理伦片一区二区三区在线播放 | 国产精品久久午夜夜伦鲁鲁| 日日欢夜夜爽一区| 色婷婷国产精品久久包臀| 久久综合九色综合97婷婷女人| 色综合网站在线| 一区二区三区中文字幕精品精品| 色av成人天堂桃色av| 久久亚洲精品国产精品紫薇| 丝袜亚洲另类欧美| 91在线播放网址| 久久毛片高清国产| 日韩电影在线一区| 在线看不卡av| 中文字幕日韩一区二区| 国产一区二区三区在线观看免费视频| 欧美日韩视频一区二区| 亚洲精品美腿丝袜| 91视频国产观看| 国产精品美女久久久久高潮| 国产精品资源在线观看| 日韩一区二区免费在线电影| 日韩中文字幕区一区有砖一区| 色婷婷av一区二区三区软件| 国产精品免费视频网站| 国产不卡视频一区| 久久久青草青青国产亚洲免观| 九九久久精品视频| 欧美电影免费观看高清完整版| 日韩不卡在线观看日韩不卡视频| 欧美体内she精视频| 一区二区三区在线观看欧美| 99国产精品久久久久久久久久| 中文在线一区二区 | 国产大陆精品国产| 久久婷婷久久一区二区三区| 极品销魂美女一区二区三区| 精品美女一区二区| 国产精品一区专区| 欧美激情一区二区三区不卡 | 一区二区三区国产精华| 日本高清不卡视频| 亚洲综合区在线| 欧美午夜精品一区二区蜜桃| 亚洲国产一区二区三区| 欧美日韩在线观看一区二区| 亚洲福利一二三区| 欧美手机在线视频| 奇米影视一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 久久99精品国产麻豆婷婷洗澡| 欧美成人r级一区二区三区| 国产伦精品一区二区三区在线观看| 久久青草欧美一区二区三区| 成人综合婷婷国产精品久久蜜臀 | 亚洲精品一区二区三区香蕉| 国产美女久久久久| 国产精品成人免费在线| 欧美亚洲高清一区二区三区不卡| 亚洲va欧美va人人爽午夜| 日韩欧美二区三区| 国产成人免费视| 一区二区三区 在线观看视频| 欧美精品777| 国产成人精品三级麻豆| 亚洲免费高清视频在线| 欧美日韩国产大片| 国产一区久久久| 中文字幕一区二区日韩精品绯色| 欧美午夜在线观看| 紧缚捆绑精品一区二区| ...xxx性欧美| 欧美一级一区二区| www.欧美.com| 日韩影院精彩在线| 国产免费观看久久| 欧美性做爰猛烈叫床潮| 国产在线看一区| 一区二区三区高清| 久久午夜电影网| 欧美色综合网站| 国产一区999| 亚洲第一主播视频| 日本一区二区三区免费乱视频 | 91在线播放网址| 美女免费视频一区二区| 国产精品第一页第二页第三页| 777精品伊人久久久久大香线蕉| 国产精品 欧美精品| 亚洲一二三区在线观看| 欧美国产在线观看| 91精品在线麻豆| 99这里只有精品| 久久爱www久久做| 亚洲国产精品久久一线不卡| 欧美激情中文不卡| 欧美一级理论片| 色婷婷亚洲综合| 国产suv一区二区三区88区| 日韩精品久久久久久| 亚洲视频一二三| 久久精品一二三|