⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swffont.java

📁 flash swf file player
💻 JAVA
字号:
//// Description://    SWFFont Class//// Authors://    Jonathan Shore <jshore@e-shuppan.com>//    Based on php wrapper developed by <dave@opaque.net>//// Copyright://    Copyright 2001 E-Publishing Group Inc.  Permission is granted to use or//    modify this code provided that the original copyright notice is included.////    This software is distributed with no warranty of liability, merchantability,//    or fitness for a specific purpose.//import SWFObjectI;import SWFFontI;////  SWFFont Class//	font specification & attributes////  Notes//    -	//public class SWFFont extends SWFObject implements SWFFontI {        public SWFFont (String font)	throws SWFException    {	if (font.endsWith (".fdb")) {	    setHandle (nNewFileFont (font));	    browserfont = false;	} else {	    setHandle (nNewBrowserFont (font));	    browserfont = true;	}    }    protected void finalize()	throws Throwable    {	if (browserfont)	    nDestroyBrowserFont (handle);	else	    nDestroyFileFont (handle);	super.finalize();    }    public float getStringWidth (String string)        { return nGetStringWidth (handle, string); }    public float getAscent ()        { return nGetAscent (handle); }    public float getDescent ()        { return nGetDescent (handle); }    public float getLeading ()        { return nGetLeading (handle); }        // native methods    protected native int	nNewFileFont (String font);    protected native int	nNewBrowserFont (String font);    protected native void	nDestroyFileFont (int handle);    protected native void	nDestroyBrowserFont (int handle);    protected native float	nGetStringWidth (int handle, String string);    protected native float	nGetAscent (int handle);    protected native float	nGetDescent (int handle);    protected native float	nGetLeading (int handle);    // variables    private boolean		browserfont;};    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -