| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Jul 2009
Beiträge: 152
| Embed Fonts and htmlText
Hallo zusammen. ich habe ein problem. ich habe in Flex 4 ein Textfeld erstellt. das sieht im Grunde so aus: Code: <?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="200"
>
<fx:Declarations>
<!-- Platzieren Sie nichtvisuelle Elemente (z.*B. Dienste, Wertobjekte) hier -->
</fx:Declarations>
<fx:Script>
<![CDATA[
[Bindable] public var m_strText:String;
[Bindable] public var test:String = "<font color='#ff0000'>This</font> ist text";
]]>
</fx:Script>
<s:Rect id="textBalk" width="100%" height="100%">
<s:fill>
<s:SolidColor color="0x000000"/>
</s:fill>
</s:Rect>
<s:Group left="10" top="10" right="10" bottom="10">
<mx:Text id="textForEachContentImage" width="100%" height="100%" htmlText="{test}"/>
</s:Group>
</s:Group> Code: /* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@font-face
{
src:url("assets/fonts/SSCeLfRg.ttf");
font-family:SpiesUndSchwarzFont;
font-style:normal;
font-weight:normal;
}
@font-face
{
src:url("assets/fonts/SSCeLfRg.ttf");
font-family:SpiesUndSchwarzFont;
font-style:normal;
font-weight:bold;
}
@font-face
{
src:url("assets/fonts/SSCeLfRg.ttf");
font-family:SpiesUndSchwarzFont;
font-style:italic;
font-weight:bold;
}
@font-face
{
src:url("assets/fonts/SSCeLfRg.ttf");
font-family:SpiesUndSchwarzFont;
font-style:italic;
font-weight:normal;
}
@font-face
{
src:url("assets/fonts/SSCeRg__.ttf");
font-family:SpiesUndSchwarzFont_;
font-style:normal;
font-weight:normal;
}
global
{
font-family: SpiesUndSchwarzFont;
font-style:normal;
font-weight:normal;
color:#ffffff;
font-size:12;
}
mx|Text
{
font-family:Arial;
} gruß und vielen dank im voraus |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Embed Fonts, nur wie? | maiskolben | Flash Einsteiger | 6 | 26-10-2006 17:08 |
| Embed Fonts & <b><i> etc pp. | Zinotidi | ActionScript 1 | 17 | 30-05-2006 20:41 |
| pixelfont embed htmlText-Konflikt!!! | andretti | Flash 8 | 4 | 07-03-2006 18:50 |
| embed fonts | Klesk | ActionScript 1 | 3 | 31-03-2003 18:06 |
| embed fonts? | powl | Flash 4 und Flash 5 | 4 | 03-02-2003 11:50 |