Questions tagged [tlf]

Adobe's open source Text Layout Framework. It supports rich text, many writing modes (both vertical and horizontal!), multi-column layouts, text editing, and typographic niceties such as kerning, ligatures, and so on.

For more details, see the Text Layout Framework FAQ.

117 questions
1
vote
1 answer

AS3 TLF text bolding as html

I am having a problem with TLF text in flash. So I'm reading a .csv file. In it I have "Some text
some bold text
bla bla" I read this in and output it to a textbox that is set to standard Arial. The
tags work fine but the tags…
Nebula
  • 679
  • 2
  • 17
  • 37
1
vote
0 answers

Flex4 RichText - RangeError: Property color value 0 is out of range

I just migrated a Flex3 module to Flex4 since I needed to use RichText for TLF support. However, when I run my web application I get this exception: RangeError: Property color value 0 is out of range at…
oferbar
  • 176
  • 2
  • 16
1
vote
1 answer

Flex 4 adding TextFlow anchor with 'click" event

Given the following: private var errorHtml:String = "

Existing account, please click here.

"; Then importing it on…
Tony Smith
  • 869
  • 1
  • 11
  • 25
1
vote
1 answer

TLF text is preventing onMouseOver event

Basically I have some TLF text as a symbol, it's read only, the font is embedded and I set mouseEnabled to false. It's sitting as a graphic, on top of a button. When I mouse over the text, or the area where the text would be, it prevents the button…
Matthew Rhoden
  • 688
  • 1
  • 10
  • 20
1
vote
0 answers

How to implement paging in a flex spark text area

I am beginning to start implement a paging mechanism in my flex application and I am wondering where do I start off. Some examples that I have seen on internet work on plain text whereas I have the text in the text flow and I don't want to loose the…
Arslan
  • 53
  • 1
  • 7
1
vote
3 answers

In Flex 4.5, how to add a toolTip to an InlineGraphicElement inside a TextFlow (TLF) using ActionScript (not MXML)?

var newParagraph : ParagraphElement = new ParagraphElement(); var icon : InlineGraphicElement = MY_ICON; // icon.toolTip = "boo" ???? newParagraph.addChild( icon ); I want a specific toolTip for "icon". I have read about using HTML and rollOver…
Richard Haven
  • 1,122
  • 16
  • 31
1
vote
2 answers

Using embedded fonts with TLFTextField

I don't know about you but I'm having a really hard time getting my head around TLF. I'm using Flash CS5. I've got an embedded font loaded from an external SWF. As far as I can tell, it's embedded properly - it used to work before I switched from…
Andrey
  • 671
  • 10
  • 23
1
vote
2 answers

Append a flow to an existing TextFlow?

I'm looking to simply append the following text to an existing spark.components.TextArea's text flow: something: hello world I have attempted to do this using the following code, but nothing…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
1
vote
1 answer

How to get format of current selection?

Is there a way to get the format of the current selection? Here is what I have so far: var currentFormat:TextLayoutFormat; var selectionStart:int; var selectionEnd:int; var operationState:SelectionState; var editManager:IEditManager; if…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
1
vote
2 answers

Flash cs5 form TLF is not receiving hebrew in some computers and do in others

i have a TLF in a form in one of my sites. from a reason i can not trace, in some cases users report that they can not write in hebrew while they can in english. i know that others can as 1. i get completed forms in hebrew to my mail. 2. i can…
shannoga
  • 19,649
  • 20
  • 104
  • 169
1
vote
1 answer

Why does Font.registerFont throw an error the second time a swf is loaded?

I've found an issue (in flash cs5) when using TLFTextfields and fonts shared at runtime, and I wondered if anyone has a solution. Here's the scenario. Fonts.swf: library for fonts (runtime shared DF4) Popup.swf: popup with a TLFTextfield (with text…
Al Brown
  • 13
  • 3
1
vote
1 answer

Import Flex RTE HtmlText to TLF TextFlow

I am working as a developer on a Flex/Air application and we are using the buggy Flex RTE (RichTextEditor) to let the user manage his notes. At the moment I am trying to evaluate how costly it would be for us to build a new text component using the…
abedurftig
  • 1,118
  • 1
  • 12
  • 24
1
vote
1 answer

TLF 2.0 in Flash CS5

I am trying to figure out how I can implement the new Text Layout Framework 2.0 in Flash CS5. There are some Flex and FlashBuilder4 examples, but nothing relating to Flash CS5. How do I update my Flash CS5 to support TLF2. I am particularly…
BOB
  • 31
  • 1
1
vote
1 answer

How to make the inline graphic image interactive in a TextFlow

I'm trying to make an image clickable in a TLF TextFlow and nothing seems to be working. I've added a event listener for a click event, set buttonMode to true and even set useHandCursor. Here is my code so far:
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
1
vote
1 answer

How do I allow tabs in a Spark Textarea?

I would like to type in tabs in a Spark TextArea and the only examples I found are for mx TextArea. Here is test data I'm using from the suggestion to use manageTabKey: var config:Configuration = new Configuration(); var…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231