0
請參閱下面最簡單的示例,它在Windows上作爲AIR桌面運行。嵌入字體不能正常工作
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face{
src: url("C:/Windows/Fonts/AdobeGothicStd-Bold.otf");
fontFamily: "AdobeGothic";
fontWeight: bold;
embedAsCFF: false;
}
s|Button{
fontFamily: "AdobeGothic";
fontSize: 20;
color: #000000;
}
</fx:Style>
<s:Button label="My Button" />
</s:WindowedApplication>
的字體沒有被使用:
我在做什麼錯?
謝謝你,我以前曾嘗試切換embedAsCFF,但我沒想到,設置fontWeight設置按鈕。 – Drahcir 2013-04-11 13:02:23