[英]Adobe Flex Tabbed View Navigator Mobile Application Embedded Font
I have a TabbedViewNavigatorApplication, I am using an embeded font for my tabs however when a tab is selected it loses the embeded font as by default the selected item is italic (I believe). 我有一个TabbedViewNavigatorApplication,我为选项卡使用了嵌入字体,但是当选择一个选项卡时,它会失去嵌入字体,因为默认情况下,所选项目为斜体(我相信)。 I've tried several different styles but have not been able to figure out what style applies to the selected tab in my tabbedviewnavigator. 我尝试了几种不同的样式,但无法确定哪种样式适用于tabbedviewnavigator中的选定选项卡。 Thanks in advance for the help. 先谢谢您的帮助。
JH JH
Try to copy-paste your embedding declaration( @font-face
), add there fontStyle: italic
, and change url of embedded file to version that contains italic font faces. 尝试复制粘贴您的嵌入声明( @font-face
),在其中添加fontStyle: italic
,然后将嵌入文件的url更改为包含斜体字体的版本。 (usually it is ended with i
, like verdanai.tff
. (通常,它以i
结尾,例如verdanai.tff
。
You can also do this for fontWeight: bold
, and for any other variations of font. 您还可以对fontWeight: bold
和其他字体变体执行此操作。 All of your font-faces shall have similar fontFamily
name - in that case correct version of font will be chosen automatically. 您的所有字体均应具有相似的fontFamily
名称-在这种情况下,将自动选择正确的字体版本。
Ok, so I got it working... It was a bit of a pain and I'm sure could have been done in an easier way but here's what I did. 好的,这样我就可以正常工作了……这有点痛苦,我敢肯定可以用一种更简单的方式来完成,但这就是我所做的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.