Flex中如何在mx:Style中用@font-face在Flash SWF中嵌入字体的例子

接下来的例子演示了Flex中如何在mx:Style中用@font-face,在Flash SWF中嵌入字体。

让我们先来看一下Demo可以右键View Source或点击这里察看源代码):

下面是完整代码(或点击这里察看):




@font-face{
src: url(‘./fonts/fromFlash.swf’);
fontFamily: “Myriad Web Pro”;
}

.myriadWebProFromSWF {
fontFamily: “Myriad Web Pro”;
fontSize: 24;
}




The quick brown fox jumped over the lazy dog.


代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Leave a Reply

Your email address will not be published. Required fields are marked *