いくつかの調査を行ったところ、sIFR フォントのボールド体とイタリック体に別のフォントを使用している場合 (Flash に B ボタンと I ボタンでそれを偽装させるのではなく) を含める必要があるようです。 SWF にフォントを追加し、次のようなコードを記述します。
sIFR.replace(sentinel, {
selector: '.intro p',
css: [
'.sIFR-root { font-family: "Sentinel-Medium"; }',
'strong { font-family: "Sentinel-Bold"; }',
'em { font-family: Sentinel-MediumItalic; }',
'a { color: #0000ff; }',
'a:hover { color: #ff0000; }'
]
});
そうすると、Flash ムービーが空になります。これは私のコードの構文の問題にすぎないと思います。助言がありますか?
更新:次のコードを使用して、これをほとんど機能させることができました(デモページ)が、ネストされたスタイルを適切に機能させることができません。たとえば、em テキストを赤に、強いテキストを青にしましたが、em テキストを強いから紫に設定しようとすると、すべての em が紫に変わります。
sIFR.replace(sentinel, {
selector: '.sifr-test',
css: [
'.sIFR-root { font-family: "Sentinel Medium"; }',
'strong { font-family: "Sentinel Bold"; font-weight: normal; color: #6666ff; }',
'em { font-family: Sentinel Medium Italic; font-style: normal; color: #ff6666; }',
'strong em { font-family: Sentinel Semibold Italic; font-weight: normal; font-style: normal; color: #ff66ff; }',
'a { color: #0000ff; }',
'a:hover { color: #ff0000; }'
]
});