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

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

?? fontdata.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.graphics;import org.eclipse.swt.internal.*;import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;/** * Instances of this class describe operating system fonts. * <p> * For platform-independent behaviour, use the get and set methods * corresponding to the following properties: * <dl> * <dt>height</dt><dd>the height of the font in points</dd> * <dt>name</dt><dd>the face name of the font, which may include the foundry</dd> * <dt>style</dt><dd>A bitwise combination of NORMAL, ITALIC and BOLD</dd> * </dl> * If extra, platform-dependent functionality is required: * <ul> * <li>On <em>Windows</em>, the data member of the <code>FontData</code> * corresponds to a Windows <code>LOGFONT</code> structure whose fields * may be retrieved and modified.</li> * <li>On <em>X</em>, the fields of the <code>FontData</code> correspond * to the entries in the font's XLFD name and may be retrieved and modified. * </ul> * Application code does <em>not</em> need to explicitly release the * resources managed by each instance when those instances are no longer * required, and thus no <code>dispose()</code> method is provided. * * @see Font */public final class FontData {		/**	 * A Win32 LOGFONT struct	 * (Warning: This field is platform dependent)	 */	public LOGFONT data;		/**	 * The height of the font data in points	 * (Warning: This field is platform dependent)	 */	public int height;		/**	 * The locales of the font	 * (Warning: These fields are platform dependent)	 */	String lang, country, variant;	/**	  * Constructs a new un-initialized font data. */public FontData() {	data = OS.IsUnicode ? (LOGFONT)new LOGFONTW() : new LOGFONTA();	// We set the charset field so that	// wildcard searching will work properly	// out of the box	data.lfCharSet = (byte)OS.DEFAULT_CHARSET;	height = 12;}/** * Constructs a new font data given the Windows <code>LOGFONT</code> * that it should represent. *  * @param data the <code>LOGFONT</code> for the result */FontData(LOGFONT data, int height) {	this.data = data;	this.height = height;}/** * Constructs a new FontData given a string representation * in the form generated by the <code>FontData.toString</code> * method. * <p> * Note that the representation varies between platforms, * and a FontData can only be created from a string that was  * generated on the same platform. * </p> * * @param string the string representation of a <code>FontData</code> (must not be null) * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the argument is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the argument does not represent a valid description</li> * </ul> * * @see #toString */public FontData(String string) {	if (string == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	int start = 0;	int end = string.indexOf('|');	if (end == -1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	String version1 = string.substring(start, end);	try {		if (Integer.parseInt(version1) != 1) SWT.error(SWT.ERROR_INVALID_ARGUMENT); 	} catch (NumberFormatException e) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}		start = end + 1;	end = string.indexOf('|', start);	if (end == -1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	String name = string.substring(start, end);		start = end + 1;	end = string.indexOf('|', start);	if (end == -1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	int height = 0;	try {		height = Integer.parseInt(string.substring(start, end));	} catch (NumberFormatException e) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}		start = end + 1;	end = string.indexOf('|', start);	if (end == -1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);	int style = 0;	try {		style = Integer.parseInt(string.substring(start, end));	} catch (NumberFormatException e) {		SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	start = end + 1;	end = string.indexOf('|', start);	data = OS.IsUnicode ? (LOGFONT)new LOGFONTW() : new LOGFONTA();	data.lfCharSet = (byte)OS.DEFAULT_CHARSET;	setName(name);	setHeight(height);	setStyle(style);	if (end == -1) return;	String platform = string.substring(start, end);	start = end + 1;	end = string.indexOf('|', start);	if (end == -1) return;	String version2 = string.substring(start, end);	if (platform.equals("WINDOWS") && version2.equals("1")) {		LOGFONT newData = OS.IsUnicode ? (LOGFONT)new LOGFONTW() : new LOGFONTA();		try {			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfHeight = Integer.parseInt(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfWidth = Integer.parseInt(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfEscapement = Integer.parseInt(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfOrientation = Integer.parseInt(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfWeight = Integer.parseInt(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfItalic = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfUnderline = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfStrikeOut = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfCharSet = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfOutPrecision = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfClipPrecision = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfQuality = Byte.parseByte(string.substring(start, end));			start = end + 1;			end = string.indexOf('|', start);			if (end == -1) return;			newData.lfPitchAndFamily = Byte.parseByte(string.substring(start, end));			start = end + 1;		} catch (NumberFormatException e) {			setName(name);			setHeight(height);			setStyle(style);			return;		}		TCHAR buffer = new TCHAR(0, string.substring(start), false);		int length = Math.min(OS.LF_FACESIZE - 1, buffer.length());		if (OS.IsUnicode) {			char[] lfFaceName = ((LOGFONTW)newData).lfFaceName;			System.arraycopy(buffer.chars, 0, lfFaceName, 0, length);		} else {			byte[] lfFaceName = ((LOGFONTA)newData).lfFaceName;			System.arraycopy(buffer.bytes, 0, lfFaceName, 0, length);		}		data = newData;	}}/**	  * Constructs a new font data given a font name, * the height of the desired font in points,  * and a font style. * * @param name the name of the font (must not be null) * @param height the font height in points * @param style a bit or combination of NORMAL, BOLD, ITALIC * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - when the font name is null</li> *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li> * </ul> */public FontData(String name, int height, int style) {	if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);	data = OS.IsUnicode ? (LOGFONT)new LOGFONTW() : new LOGFONTA();	setName(name);	setHeight(height);	setStyle(style);	// We set the charset field so that	// wildcard searching will work properly	// out of the box	data.lfCharSet = (byte)OS.DEFAULT_CHARSET;}/** * Compares the argument to the receiver, and returns true * if they represent the <em>same</em> object using a class * specific comparison. * * @param object the object to compare with this object * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise * * @see #hashCode */public boolean equals (Object object) {	if (object == this) return true;	if (!(object instanceof FontData)) return false;	FontData fd = (FontData)object;	LOGFONT lf = fd.data;	return data.lfCharSet == lf.lfCharSet &&		/*		* This code is intentionally commented.  When creating		* a FontData, lfHeight is not necessarily set.  Instead		* we check the height field which is always set.		*/ //		data.lfHeight == lf.lfHeight &&		height == fd.height &&		data.lfWidth == lf.lfWidth &&		data.lfEscapement == lf.lfEscapement &&		data.lfOrientation == lf.lfOrientation &&		data.lfWeight == lf.lfWeight &&		data.lfItalic == lf.lfItalic &&		data.lfUnderline == lf.lfUnderline &&		data.lfStrikeOut == lf.lfStrikeOut &&		data.lfCharSet == lf.lfCharSet &&		data.lfOutPrecision == lf.lfOutPrecision &&		data.lfClipPrecision == lf.lfClipPrecision &&		data.lfQuality == lf.lfQuality &&		data.lfPitchAndFamily == lf.lfPitchAndFamily &&		getName().equals(fd.getName());}int EnumLocalesProc(int lpLocaleString) {		/* Get the locale ID */	int length = 8;	TCHAR buffer = new TCHAR(0, length);	int byteCount = length * TCHAR.sizeof;	OS.MoveMemory(buffer, lpLocaleString, byteCount);	int lcid = Integer.parseInt(buffer.toString(0, buffer.strlen ()), 16);	/* Check the language */	int size = OS.GetLocaleInfo(lcid, OS.LOCALE_SISO639LANGNAME, buffer, length);	if (size <= 0 || !lang.equals(buffer.toString(0, size - 1))) return 1;	/* Check the country */	if (country != null) {		size = OS.GetLocaleInfo(lcid, OS.LOCALE_SISO3166CTRYNAME, buffer, length);		if (size <= 0 || !country.equals(buffer.toString(0, size - 1))) return 1;	}	/* Get the charset */	size = OS.GetLocaleInfo(lcid, OS.LOCALE_IDEFAULTANSICODEPAGE, buffer, length);	if (size <= 0) return 1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄页网站大全一区二区| 91精品国产综合久久香蕉的特点 | 欧日韩精品视频| 欧美一区二区三区在线观看视频| 国产精品免费av| 日韩不卡免费视频| 91丨porny丨在线| 国产午夜亚洲精品午夜鲁丝片| 亚洲成a人在线观看| 色综合久久久久网| 中文字幕欧美国产| 国产一区二区三区最好精华液| 欧美日韩一区二区三区视频| 日本一区二区三区高清不卡 | 日韩欧美综合在线| 亚洲综合激情小说| 色综合久久中文字幕| 国产精品久久久爽爽爽麻豆色哟哟| 麻豆精品一二三| 91精品国产色综合久久ai换脸| 亚洲一区二区在线视频| 91麻豆免费看| 亚洲同性同志一二三专区| 成人性色生活片免费看爆迷你毛片| 日韩欧美不卡在线观看视频| 丝袜国产日韩另类美女| 欧美伊人久久大香线蕉综合69 | 日本伊人精品一区二区三区观看方式| 色婷婷综合五月| 亚洲日本va午夜在线影院| 成人网在线免费视频| 亚洲激情图片qvod| 欧美亚洲一区三区| 午夜精品福利一区二区蜜股av | 色婷婷亚洲精品| 中文字幕在线不卡| 91网址在线看| 一区二区激情小说| 欧美另类z0zxhd电影| 免费在线观看成人| 久久视频一区二区| 成人免费视频一区| 伊人色综合久久天天| 欧美日韩国产成人在线免费| 日韩精品免费专区| 精品国产a毛片| 国产成人午夜99999| 中文字幕一区二区三区在线播放 | 国产日韩三级在线| 成人高清免费观看| 一区二区三区四区激情| 4438x亚洲最大成人网| 精品亚洲porn| 最近日韩中文字幕| 欧美精品自拍偷拍| 国产馆精品极品| 亚洲精品国产视频| 日韩一区二区三区视频在线 | 久久黄色级2电影| 亚洲国产精品精华液2区45| 一本色道久久综合狠狠躁的推荐 | 亚洲国产一区二区三区| 日韩亚洲欧美成人一区| 成人国产精品免费| 视频在线观看一区| 国产精品久久久久婷婷二区次| 欧美日韩在线播放| 国产成人在线视频网站| 亚洲成年人网站在线观看| 国产婷婷一区二区| 欧美性感一类影片在线播放| 国产美女精品一区二区三区| 亚洲精品成人在线| 久久蜜桃一区二区| 欧美电影影音先锋| 色丁香久综合在线久综合在线观看| 欧美特级限制片免费在线观看| 精品一区二区三区在线播放| 亚洲精品日韩一| 国产网站一区二区| 欧美一级二级在线观看| 99这里只有久久精品视频| 麻豆精品一区二区| 午夜精品久久久久久久久久久| 久久精品一区八戒影视| 日韩欧美专区在线| 欧美亚洲高清一区二区三区不卡| 国产成人午夜片在线观看高清观看| 亚洲成av人片观看| 亚洲精品国产无天堂网2021 | 91美女在线观看| 韩国欧美国产一区| 日本成人在线视频网站| 夜夜夜精品看看| 中文字幕一区二区三区四区不卡 | 欧美成人欧美edvon| 欧美日韩在线播放一区| 一本大道av伊人久久综合| 国产麻豆视频精品| 激情图区综合网| 蜜臀久久久久久久| 日韩国产欧美一区二区三区| 亚洲综合免费观看高清完整版在线 | 久久久久久一级片| 精品久久久久久亚洲综合网| 欧美男同性恋视频网站| 欧美日韩精品免费观看视频 | 精品美女在线播放| 91麻豆精品国产自产在线 | 蜜桃传媒麻豆第一区在线观看| 亚洲电影在线播放| 亚洲高清不卡在线| 亚洲动漫第一页| 日韩在线一区二区| 日韩成人av影视| 蜜臀av一区二区在线免费观看 | 久久久精品tv| 久久理论电影网| 欧美国产禁国产网站cc| 中文字幕一区二区三区av| 亚洲欧美一区二区三区国产精品 | 人禽交欧美网站| 天天av天天翘天天综合网| 日韩精品一级中文字幕精品视频免费观看 | 日韩伦理免费电影| 一区二区三区自拍| 日韩av中文字幕一区二区| 蜜桃精品在线观看| 国产一区二区三区四区在线观看| 国产伦精品一区二区三区视频青涩| 韩国欧美国产1区| av中文字幕一区| 欧美片在线播放| 日韩女优制服丝袜电影| 国产日韩精品一区二区浪潮av| 国产精品久久久久久久午夜片| 亚洲欧洲日韩一区二区三区| 亚洲二区在线视频| 久色婷婷小香蕉久久| 成人免费福利片| 欧美色涩在线第一页| 精品裸体舞一区二区三区| 国产精品久久久久久亚洲伦| 一区二区欧美精品| 久久福利视频一区二区| 91色乱码一区二区三区| 91精品国产福利在线观看| 久久九九99视频| 亚洲成a人片在线观看中文| 精品一区二区免费| 日本韩国精品一区二区在线观看| 欧美一区二区在线视频| 国产精品盗摄一区二区三区| 偷窥少妇高潮呻吟av久久免费 | 久久99精品久久久久久| av一区二区三区在线| 欧美α欧美αv大片| 亚洲乱码国产乱码精品精的特点 | 91视频在线观看免费| 日韩欧美成人午夜| 一区二区三区影院| 国产精品18久久久久久久网站| 91麻豆精品在线观看| 国产午夜亚洲精品羞羞网站| 天天影视涩香欲综合网| 99re6这里只有精品视频在线观看| 日韩午夜激情电影| 亚洲福利视频一区| 91丨国产丨九色丨pron| 久久一二三国产| 日本色综合中文字幕| 91国偷自产一区二区三区观看| 欧美videossexotv100| 亚洲成人免费看| 91麻豆高清视频| 国产亚洲成aⅴ人片在线观看| 日韩av二区在线播放| 欧美体内she精高潮| 亚洲激情av在线| 91亚洲精品一区二区乱码| 国产欧美日韩精品一区| 麻豆一区二区在线| 欧美麻豆精品久久久久久| 一级中文字幕一区二区| 91丨九色丨蝌蚪丨老版| 国产精品久久久久久久久免费丝袜 | 亚洲视频在线观看三级| 国产乱码一区二区三区| 精品国产一区二区亚洲人成毛片| 五月天激情小说综合| 国产精品美女久久久久aⅴ| 国产成人亚洲综合色影视| 久久色中文字幕| 国产成人精品一区二区三区四区 | 国产成人av在线影院| 精品久久一区二区三区| 老司机精品视频一区二区三区| 91麻豆精品国产| 丝袜诱惑制服诱惑色一区在线观看| 欧美视频在线观看一区二区|