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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fontdata.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	int cp = Integer.parseInt(buffer.toString(0, size - 1));	int [] lpCs = new int[8];	OS.TranslateCharsetInfo(cp, lpCs, OS.TCI_SRCCODEPAGE);	data.lfCharSet = (byte)lpCs[0];	return 0;}/** * Returns the height of the receiver in points. * * @return the height of this FontData * * @see #setHeight */public int getHeight() {	return height;}/** * Returns the locale of the receiver. * <p> * The locale determines which platform character set this * font is going to use. Widgets and graphics operations that * use this font will convert UNICODE strings to the platform * character set of the specified locale. * </p> * <p> * On platforms where there are multiple character sets for a * given language/country locale, the variant portion of the * locale will determine the character set. * </p> *  * @return the <code>String</code> representing a Locale object * @since 3.0 */public String getLocale () {	StringBuffer buffer = new StringBuffer ();	char sep = '_';	if (lang != null) {		buffer.append (lang);		buffer.append (sep);	}	if (country != null) {		buffer.append (country);		buffer.append (sep);	}	if (variant != null) {		buffer.append (variant);	}		String result = buffer.toString ();	int length = result.length ();	if (length > 0) {		if (result.charAt (length - 1) == sep) {			result = result.substring (0, length - 1);		}	} 	return result;}/** * Returns the name of the receiver. * On platforms that support font foundries, the return value will * be the foundry followed by a dash ("-") followed by the face name. * * @return the name of this <code>FontData</code> * * @see #setName */public String getName() {	char[] chars;	if (OS.IsUnicode) {		chars = ((LOGFONTW)data).lfFaceName;	} else {		chars = new char[OS.LF_FACESIZE];		byte[] bytes = ((LOGFONTA)data).lfFaceName;		OS.MultiByteToWideChar (OS.CP_ACP, OS.MB_PRECOMPOSED, bytes, bytes.length, chars, chars.length);	}	int index = 0;	while (index < chars.length) {		if (chars [index] == 0) break;		index++;	}	return new String (chars, 0, index);}/** * Returns the style of the receiver which is a bitwise OR of  * one or more of the <code>SWT</code> constants NORMAL, BOLD * and ITALIC. * * @return the style of this <code>FontData</code> *  * @see #setStyle */public int getStyle() {	int style = SWT.NORMAL;	if (data.lfWeight == 700) style |= SWT.BOLD;	if (data.lfItalic != 0) style |= SWT.ITALIC;	return style;}/** * Returns an integer hash code for the receiver. Any two  * objects which return <code>true</code> when passed to  * <code>equals</code> must return the same value for this * method. * * @return the receiver's hash * * @see #equals */public int hashCode () {	return data.lfCharSet ^ height ^ data.lfWidth ^ data.lfEscapement ^		data.lfOrientation ^ data.lfWeight ^ data.lfItalic ^data.lfUnderline ^		data.lfStrikeOut ^ data.lfCharSet ^ data.lfOutPrecision ^		data.lfClipPrecision ^ data.lfQuality ^ data.lfPitchAndFamily ^		getName().hashCode();}/** * Sets the height of the receiver. The parameter is * specified in terms of points, where a point is one * seventy-second of an inch. * * @param height the height of the <code>FontData</code> * * @exception IllegalArgumentException <ul> *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li> * </ul> *  * @see #getHeight */public void setHeight(int height) {	if (height < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	this.height = height;}/** * Sets the locale of the receiver. * <p> * The locale determines which platform character set this * font is going to use. Widgets and graphics operations that * use this font will convert UNICODE strings to the platform * character set of the specified locale. * </p> * <p> * On platforms where there are multiple character sets for a * given language/country locale, the variant portion of the * locale will determine the character set. * </p> *  * @param locale the <code>String</code> representing a Locale object * @see java.util.Locale#toString */public void setLocale(String locale) {		lang = country = variant = null;	if (locale != null) {		char sep = '_';		int length = locale.length();		int firstSep, secondSep;				firstSep = locale.indexOf(sep);		if (firstSep == -1) {			firstSep = secondSep = length;		} else {			secondSep = locale.indexOf(sep, firstSep + 1);			if (secondSep == -1) secondSep = length;		}		if (firstSep > 0) lang = locale.substring(0, firstSep);		if (secondSep > firstSep + 1) country = locale.substring(firstSep + 1, secondSep);		if (length > secondSep + 1) variant = locale.substring(secondSep + 1);	}	if (lang == null) {		data.lfCharSet = (byte)OS.DEFAULT_CHARSET;	} else {		Callback callback = new Callback (this, "EnumLocalesProc", 1);		int lpEnumLocalesProc = callback.getAddress ();			OS.EnumSystemLocales(lpEnumLocalesProc, OS.LCID_SUPPORTED);		callback.dispose ();	}}/** * Sets the name of the receiver. * <p> * Some platforms support font foundries. On these platforms, the name * of the font specified in setName() may have one of the following forms: * <ol> * <li>a face name (for example, "courier")</li> * <li>a foundry followed by a dash ("-") followed by a face name (for example, "adobe-courier")</li> * </ol> * In either case, the name returned from getName() will include the * foundry. * </p> * <p> * On platforms that do not support font foundries, only the face name * (for example, "courier") is used in <code>setName()</code> and  * <code>getName()</code>. * </p> * * @param name the name of the font data (must not be null) * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - when the font name is null</li> * </ul> * * @see #getName */public void setName(String name) {	if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	/* The field lfFaceName must be NULL terminated */	TCHAR buffer = new TCHAR(0, name, true);	int length = Math.min(OS.LF_FACESIZE - 1, buffer.length());	if (OS.IsUnicode) {		char[] lfFaceName = ((LOGFONTW)data).lfFaceName;		for (int i = 0; i < lfFaceName.length; i++) lfFaceName[i] = 0;		System.arraycopy(buffer.chars, 0, lfFaceName, 0, length);	} else {		byte[] lfFaceName = ((LOGFONTA)data).lfFaceName;		for (int i = 0; i < lfFaceName.length; i++) lfFaceName[i] = 0;		System.arraycopy(buffer.bytes, 0, lfFaceName, 0, length);	}}/** * Sets the style of the receiver to the argument which must * be a bitwise OR of one or more of the <code>SWT</code>  * constants NORMAL, BOLD and ITALIC. * * @param style the new style for this <code>FontData</code> * * @see #getStyle */public void setStyle(int style) {	if ((style & SWT.BOLD) == SWT.BOLD) {		data.lfWeight = 700;	} else {		data.lfWeight = 0;	}	if ((style & SWT.ITALIC) == SWT.ITALIC) {		data.lfItalic = 1;	} else {		data.lfItalic = 0;	}}/** * Returns a string representation of the receiver which is suitable * for constructing an equivalent instance using the  * <code>FontData(String)</code> constructor. * * @return a string representation of the FontData * * @see FontData */public String toString() {	StringBuffer buffer = new StringBuffer();	buffer.append("1|");	buffer.append(getName());	buffer.append("|");	buffer.append(getHeight());	buffer.append("|");	buffer.append(getStyle());	buffer.append("|");	buffer.append("WINDOWS|1|");		buffer.append(data.lfHeight);	buffer.append("|");	buffer.append(data.lfWidth);    	buffer.append("|");	buffer.append(data.lfEscapement); 	buffer.append("|");	buffer.append(data.lfOrientation);    	buffer.append("|");	buffer.append(data.lfWeight);    	buffer.append("|");	buffer.append(data.lfItalic);    	buffer.append("|");	buffer.append(data.lfUnderline); 	buffer.append("|");	buffer.append(data.lfStrikeOut);    	buffer.append("|");	buffer.append(data.lfCharSet);    	buffer.append("|");	buffer.append(data.lfOutPrecision); 	buffer.append("|");	buffer.append(data.lfClipPrecision);    	buffer.append("|");	buffer.append(data.lfQuality);    	buffer.append("|");	buffer.append(data.lfPitchAndFamily);	buffer.append("|");	buffer.append(getName());	return buffer.toString();}/**	  * Invokes platform specific functionality to allocate a new font data. * <p> * <b>IMPORTANT:</b> This method is <em>not</em> part of the public * API for <code>FontData</code>. It is marked public only so that * it can be shared within the packages provided by SWT. It is not * available on all platforms, and should never be called from * application code. * </p> * * @param data the <code>LOGFONT</code> for the font data * @param height the height of the font data * @return a new font data object containing the specified <code>LOGFONT</code> and height */public static FontData win32_new(LOGFONT data, int height) {	return new FontData(data, height);}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品免费| 精品理论电影在线观看| 日韩免费在线观看| 亚洲欧洲综合另类在线 | 日韩欧美成人激情| 亚洲视频一区在线| 福利视频网站一区二区三区| 91麻豆精品国产91久久久久| 一区二区三区视频在线观看| 国产**成人网毛片九色 | 精品视频1区2区3区| 日本一区二区在线不卡| 免费一级片91| 欧美日韩亚洲综合| 亚洲综合丝袜美腿| 91久久精品一区二区三区| 欧美国产1区2区| 高清久久久久久| 久久久久久久网| 韩国女主播一区二区三区| 欧美一区二区美女| 青青草国产精品97视觉盛宴| 欧美久久久久免费| 一卡二卡欧美日韩| 在线观看亚洲成人| 亚洲午夜激情av| 欧美日韩黄视频| 日本欧美一区二区三区| 欧美剧情电影在线观看完整版免费励志电影| 日韩理论在线观看| 色婷婷综合久色| 亚洲成人自拍偷拍| 欧美一区二区三区在线视频| 另类的小说在线视频另类成人小视频在线 | 免费观看日韩电影| 日韩欧美一级特黄在线播放| 免费成人在线观看| 欧美精品一区二区三区视频 | 亚洲第一久久影院| 在线成人av网站| 免费高清在线一区| 久久久久99精品一区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 风间由美中文字幕在线看视频国产欧美| 久久久久久久久久久久久夜| 国产成人综合在线观看| 国产精品免费视频观看| 91极品视觉盛宴| 日韩国产一二三区| 国产欧美日韩精品a在线观看| 成人美女视频在线观看18| 亚洲日韩欧美一区二区在线| 欧美日韩黄视频| 激情欧美一区二区| 亚洲色图在线看| 欧美日韩色一区| 国产精品一区二区三区乱码| 中文字幕一区二区在线观看| 欧美日韩国产三级| 精品亚洲porn| 一区二区三区资源| 精品久久久久久久久久久久包黑料| 国产成人免费视频网站| 亚洲图片欧美色图| 国产亚洲欧美日韩在线一区| 欧洲精品在线观看| 国产自产视频一区二区三区| 亚洲综合久久久| 久久婷婷成人综合色| 99精品欧美一区| 国内久久精品视频| 亚洲bt欧美bt精品777| 26uuu精品一区二区| 欧美三级视频在线观看| 国产精品一卡二卡| 三级一区在线视频先锋| 国产精品入口麻豆九色| 欧美精品日韩一区| 波多野结衣在线aⅴ中文字幕不卡| 日欧美一区二区| 亚洲摸摸操操av| 国产欧美日韩综合精品一区二区| 欧美区在线观看| av在线免费不卡| 国产黄色91视频| 青青青爽久久午夜综合久久午夜| 亚洲男人都懂的| 欧美极品少妇xxxxⅹ高跟鞋| 日韩免费看的电影| 欧美日韩精品一区视频| av电影在线不卡| 国产精品原创巨作av| 日本亚洲欧美天堂免费| 亚洲精品高清视频在线观看| 国产丝袜美腿一区二区三区| 日韩美女在线视频| 欧美日韩亚洲另类| 在线观看视频91| 91捆绑美女网站| av不卡免费电影| 成人深夜在线观看| 国产sm精品调教视频网站| 精品一区二区三区久久| 裸体健美xxxx欧美裸体表演| 亚洲成人第一页| 一区二区三区高清在线| 最新热久久免费视频| 国产精品理伦片| 国产精品麻豆视频| 成人欧美一区二区三区1314| 国产色产综合色产在线视频| 久久综合九色欧美综合狠狠| 精品久久久久久久人人人人传媒| 91精品国产91久久久久久最新毛片 | 欧美大片在线观看| 日韩你懂的电影在线观看| 精品久久久久久亚洲综合网| 精品久久久久久久人人人人传媒 | 日韩精品一区二区三区四区视频| 91精品国产日韩91久久久久久| 91.xcao| 日韩免费高清电影| 久久久久久亚洲综合| 日本一区二区在线不卡| 综合激情成人伊人| 亚洲自拍偷拍综合| 日产国产欧美视频一区精品| 另类小说一区二区三区| 国产高清精品在线| 91丨九色porny丨蝌蚪| 在线免费av一区| 欧美日韩高清影院| 久久综合色之久久综合| 国产精品久久久久国产精品日日| 亚洲人午夜精品天堂一二香蕉| 一级特黄大欧美久久久| 免费观看成人鲁鲁鲁鲁鲁视频| 国产伦精品一区二区三区视频青涩| 国产suv精品一区二区6| 欧美这里有精品| 精品久久久久久综合日本欧美| 国产精品国产自产拍高清av | 亚洲成人av一区| 久久se精品一区精品二区| 国产福利一区二区三区视频| 日本韩国欧美在线| 欧美一区二区三区免费在线看 | 五月激情综合色| 国产精品一区二区三区四区| 色爱区综合激月婷婷| 欧美一区二区三区四区久久| 国产欧美日韩不卡免费| 日韩经典一区二区| 成人av网站免费观看| 日韩三级免费观看| 亚洲视频中文字幕| 国产一区二区在线免费观看| 在线视频欧美区| 国产日本一区二区| 石原莉奈在线亚洲二区| 99久久国产综合色|国产精品| 欧美一区二区三区免费视频| 亚洲视频 欧洲视频| 国产一区二区在线影院| 欧美性xxxxx极品少妇| 日本一区二区免费在线| 日韩福利电影在线观看| 色综合色综合色综合色综合色综合| 日韩精品一区二区三区视频播放 | 欧美疯狂性受xxxxx喷水图片| 国产欧美一区二区三区在线看蜜臀 | 在线观看一区二区视频| 国产欧美一区二区精品秋霞影院| 日韩精品成人一区二区三区| 色哟哟亚洲精品| 国产欧美一区二区三区网站| 久久se这里有精品| 欧美肥妇毛茸茸| 亚洲综合一区二区三区| 成人h动漫精品一区二区| 久久久久久一级片| 韩国女主播一区二区三区| 日韩一级二级三级| 五月天一区二区三区| 色欧美日韩亚洲| 136国产福利精品导航| 成人综合在线视频| 久久精品亚洲麻豆av一区二区| 裸体一区二区三区| 日韩欧美国产综合在线一区二区三区| 一区二区三区在线免费| 91视频精品在这里| 中文字幕综合网| 99精品国产99久久久久久白柏| 中文字幕欧美日本乱码一线二线| 国产一区 二区 三区一级| 久久五月婷婷丁香社区| 国产激情精品久久久第一区二区| 久久精品视频在线看| 国产精品综合网|