sIFR 仅显示我的 swf 中字形的第一个字体样式,似乎无法调用其他字体样式
我已经上传了带有粗体、普通和斜体嵌入字体字形的 .swf 文件。然后,我转到 sifr-config.js 文件,使用 CSS 设置文本样式。除 font-style:italic; 之外的所有属性和字体粗细:粗体;是有效的。
事实上,当我尝试使用这些属性时,Flash 文本根本不显示。
但是,如果我返回 Flash 文件并将第一个字形从“正常”更改为“粗体”或“斜体”,然后重新导出,它将以我刚刚将第一个字形更改为的任何样式显示 Flash 文本。
这是我的 CSS 除了 font-weigh 和 font-style 之外的所有属性:
sIFR.replace(ronnia, {
selector: 'h1, logo-text',
wmode: 'transparent',
css: '.sIFR-root { font-size:200px; background-color:none; color: #000000; text-transform: uppercase; font-style:Italic; display:block;}'
});
我对 sIFR 真的很陌生,你知道我可能做错了什么吗?
I've uploaded my .swf with bold, normal and italic glyphs of the font embedded. I then go to my sifr-config.js file to style the text using CSS. All properties except the font-style:italic; and font-weight:bold; are effective.
In fact, when I try to use these properties the flash text doesn't show up at all.
But if I go back into my flash file and change the first glyph from "normal" to "bold" or "italic" then re-export, it'll display the Flash text as whatever style I've just changed that first glyph to.
Here's my CSS all the properties except font-weigh and font-style work:
sIFR.replace(ronnia, {
selector: 'h1, logo-text',
wmode: 'transparent',
css: '.sIFR-root { font-size:200px; background-color:none; color: #000000; text-transform: uppercase; font-style:Italic; display:block;}'
});
I'm really new to the sIFR thing, any ideas what I could be doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该代码显示
Italic
,并带有大写 I。Flash 对其 CSS 支持可能很挑剔,因此这可能是一个问题。除此之外,如果您可以添加演示页面的链接,将会有所帮助。The code says
Italic
with a capital I. Flash can be picky with its CSS support, so that might be a problem. Other than that, it'd help if you could add a link to a demo page.解决方案(eeehhh - 解决方法):
这是 flash-problem 的导出 - 我读了一些有关 flash 不导出 fla 文件的样式 3 和 4 的其他帖子。( 字体不会导出)
这让我尝试这样做:我将“bold”作为样式应用于 sifr3-r436- fla 文件中的第一个单词(单词“制作')并导出它。在演示index.html文件中,我调用了这个swf文件,但我没有将css代码部分更改为粗体(字体粗细:正常)-我第一次能够使用sIFR显示字体的“粗体”样式。
我想我会坚持为每个字体粗细制作单独的 swf 的工作流程。
马克,我想很多人都在为此苦苦挣扎 - 你会在 sIFR 文档网站上告诉人们这个问题吗?
问题:
我也为这个问题而苦苦挣扎。只有“正常”适用于某些字体。我尝试使用的字体之一没有“BoldItalic”,因此我将其设置为“粗体” - 这可能是“粗体”失败的原因吗?
有人解决这个问题了吗?如果没有,我会尝试设置一个演示页面供马克探索。
像杰伊一样,我想知道这是否是字体问题 - 某些字体的问题是已知问题吗?
实际上“粗体”“斜体”“粗体&斜体”是我尝试过的几乎所有字体的问题。只有 Verdana 和 Georgia 取得成功...
我错过了哪些关键信息?我在 fla 文件中做错了什么吗?
我尝试了一些方法来检查正在做什么 - 我将粗体字体样式应用于 fla 文件中的“正常”单词 - 但这没有任何效果。我想这只是在 swf 文件中嵌入字体样式的问题。
SOLUTION (eeehhh - work-around):
It's an export from flash-problem - I read some other posts about flash not exporting style 3 and 4 of the fla file.( Font wont export out )
This made me try this: I applied 'bold' as style to the first word in the sifr3-r436- fla file (the word 'Make') and exported it. In the demo index.html file i called this swf file but I DID NOT change the css code part to bold (font-weight: normal) - for the first time I was able to display the 'bold' style of the font using sIFR.
I think I'll stick to a work flow making seperate swfs for each font-weight.
Mark, I guess a lot of people struggle with this - are you going to tell people about this problem on the sIFR documentation site?
PROBLEM:
I also struggle with that problem. Only 'normal' works with some of the fonts. One of the fonts I'm trying to use don't have 'BoldItalic' so I set this to 'bold' - could that be the reason for 'bold' to fail?
Have anybody solved this problem yet? If not I'll try to set up a demo page for Mark to explore.
Like Jay I wonder if this is a font problem - are problem with some fonts a known issue?
Actually 'bold' 'italic' 'bold&italic' is a problem with almost all the fonts I try out. Only success with verdana and georgia...
What critical info have I missed? Do I do something wrong in the fla file?
I tried something to check whats doing what - I applied the bold font style to the 'normal' word in the fla file - but that does not have any effect. I guess it's just a question of embedding the font style in te swf-file.