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
0
votes
1 answer

How do I stop the formatting (bold etc) being lost when a user deletes a whole line in Flex tlf textflow control

I am using text layout framework textflow in Flex 3 to get embedded images. In the edit field for the application the user can apply formatting. This all works fine except if the user deletes all the text they have entered and then starts typing…
NJA
  • 31
  • 1
  • 4
0
votes
1 answer

Remove line breaks from pasted text in Spark TextArea

I'm trying to remove all line breaks from the text that is pasted into the Spark TextArea. I have:
0
votes
1 answer

Does Adobe TLF Support Chinese Fonts in RichEditableText Component

I've created a "Poster Maker" in Flex. The text part of the poster is written inside a TLF-based RichEditableText component. Users can choose the font for the text using a ComboBox which lists all the device fonts on the computer. All works well,…
Jake Howlett
  • 169
  • 3
  • 14
0
votes
1 answer

Regex as3 if part of substring is true then replace part of substring with running var

Ok perhaps ive bitten off too much here... I know you are not supposed to parse xml/html to regex but the thing is there just arent many other options. Im using AS3 im parsing the source of textflowlayout text to a different format. string to parse…
Murray
  • 515
  • 4
  • 11
0
votes
2 answers

ActionScript / AIR - File Size Increase with TLF?

i'm developing an AIR application in Flash Professional CS5 and noticed that my .swf file size jumps from around 100kb to 900kb just for using TLF?! is this normal? that seems like an awful lot of extra weight for a few more options over regular…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
0
votes
1 answer

I need help with tlf fonts and as3. When I export I get an error WARNING: Multiple TLF Objects

I'm using a custom font on my flash website and am getting an error message "WARNING: Multiple TLF objects have the same instance name. TLF instance names must be unique. All but one of the instance names will be renamed during export.". Please…
0
votes
1 answer

How to clear formatting on a selection in TLF?

I'm trying to remove the formatting of the selection and what I have so far only removes the formatting on a selection when the selection is inside a paragraph. If the selection extends to another paragraph the formatting is not removed. Here is…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
1 answer

Determine portion of font rendered to left of black box?

I have a font - 'Saginaw' that when renders has some portion of the glyph to the 'left' of the starting position/box: [Picture here] http:// i.imgur.com/1lP3C.png The above snip is of the font in Photoshop.. I did a 'select all' to show the black…
Erik
  • 1
0
votes
1 answer

Flex TLF - Ability to create links using regex matches?

When importing / converting text into a TextFlow, is there a way to define RegEx based parsers that generate elements? For example: I want to create a LinkElement whenever an email address is matched. I want to create a InlineGraphicElement…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
0
votes
2 answers

Trouble loading CFF embedded fonts in an external SWF at runtime

We have a large flash site which is translated into 11 languages. We have a font loading system whereby all the characters required to display the site in each language are embedded in external swfs (so 11 swfs). A recent update to the site…
geo
  • 253
  • 2
  • 12
0
votes
1 answer

Flex 4 TLF and embedded font loaded as a module not working

this problem is really killing me so any help will be really great :) I have a flex 4 application that loads a flex module. In this module I 'register' a bunch of fonts. I have a Spark textArea in this module that wants to use one of these fonts via…
charleetm
  • 916
  • 1
  • 12
  • 26
0
votes
1 answer

TLF - Flowing text through multiple containers and line breaks

I'm using TLF to lay out a dictionary entry. It's working fairly well, but I need finer grained control of layout than I'm able to achieve through setting style properties on FlowElements, primarily for horizontal spacing and setting padding on…
Dane
  • 874
  • 12
  • 18
0
votes
1 answer

How do you remove styles from a FlowElement in TLF?

I'm using the following code to apply padding to a InlineGraphicElement but it only seems to be applying the value and not removing it. imageFloat = inlineGraphicElement.float; newFormat = new TextLayoutFormat(); if (imageFloat==Float.LEFT ||…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
1 answer

How to change the cursor when over TLF text?

With any of the editable text fields such as RichEditableText, TextArea and any TextFlow containers the cursor is always the familiar text entry pipe character with serifs thing. Whatever. I need to be able to change that to a hand cursor as it…
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
0
votes
2 answers

How to set the indent size of bullets in TLF?

Is there a property or style that I can use to set the indent size of the bullets in a list in TLF?
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231