在Flex4中嵌入字体
发布时间:2020-12-15 04:17:53 所属栏目:百科 来源:网络整理
导读:?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"s:layouts:BasicLayout//s:layoutf
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <s:layout> <s:BasicLayout/> </s:layout> <fx:Style> @font-face{ src:url("../flex_src/mao.ttf"); font-family:mao; } </fx:Style> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> <s:Label x="104" y="107" text="这是一个测试" fontSize="32" fontFamily="mao"/> </s:Application>如果要使用的字体不是系统字体,可以把字体嵌入到Flash中,然后引用该字体。不过字体文件一般都比较大,慎重使用该功能。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |