change the font size of a substring in a text of TLF

I want to reduce the font size of all of the secondary channels located inside the parenthesis in my Text of TLF.

For example, let's say it's in my text in the TLF (instance name 'testTLF')

It is a (test) and I'm test(ing) namely () how to resize (text).

I can find and replace all channels secondary inside the parenthesis with a star (*) with this code:

var insideP:RegExp = /-(([^ \)] +)------);

While (testTLF.text.search (insideP)! = - 1) {}

testTLF.text = testTLF.text.replace(insideP,"*");

}

Here is the result:

It is a * and I test* find * how to resize *.

Now, the question is how can I RESIZE instead of REPLACE? to get a result like this:

It is a (test) and I'm test(ing) namely () how to resize (text).

Thank you very MUCH for your help in this case.


This is the final complete code thank you than kglad, I put it here for other users:

KGlad();

function KGlad (): void

{

var myTextFormat:TextFormat = new TextFormat();

myTextFormat.size = myText.textFlow.computedFormat.fontSize * 0.8;

myTextFormat.color = 0xff0000;

resizeParantheticalF (myText, myTextFormat);

function resizeParantheticalF(tf:TLFTextField,tfor:TextFormat):void

{

var n: int = 0;

While (n > = 0)

{

n = tf.text.indexOf ("(", n);

If (n is-1)

{

return;

}

n ++ ;

tf.setTextFormat (tfor, n-1, tf.text.indexOf ("") ", n) + 1);

}

}

}

Tags: Adobe Animate

Similar Questions

  • Can I change the font size of the subjects email in my Inbox

    I'm changing the font size in the Inbox for a friend with a visual impairment. I am not able to find an option to do it though. Is this possible?

    I think that you need an add-on.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/

    http://Xenos-email-notes.simplesite.com/416814616

  • I can't go in the settings of fonts. How to change the font size?

    I had downloaded the latest version of Firefox and I finished it sync for my Android phone. I went into a kind of dialog box settings and accidentally changed my fonts and text settings and now I can't read any of my Gmail which is in my account on my desktop - it's too small. I'm trying to figure out how I can enter in the content settings (I feel that I do once I have enter the menu 'options' on the content settings page, but I don't know how to bring up the menu of the content/page settings). I use my desktop PC for work and I can't use it with the font settings and how they are now. I also read where the issues are taken, but no one knows how to find the answers to the questions people are asking. How do we get the answers that people give us on the issue, we asked?

    I hope you can help me as soon as POSSIBLE, I can change what I as soon as POSSIBLE. I'm working on my pc 24/7 for the work and is not helping me when I can't read the emails and I can't solve the problem.

    Thank you!

    Hi Upset2,

    Sorry to hear that you are having problems with font sizes in Firefox on your desktop.

    Text sizes really small for each Web site you visit, or is it just your emails?
    Text sizes are really small on your desktop and Android or only one?

    There are several things that could cause your text sizes to seem strange, so I'll take you by a couple.

    First of all, your email page could have a zoom. On your PC, could you please try open Gmail and then by clicking on the icon at the top right of your screen that looks like three lines?

    This will bring up a new menu and near the top of the menu are three buttons: a minus (-), a percentage (that is to say, he could say 70%) and a plus (+). Please click button percentage - this should Gmail zoom to 100%.

    If that doesn't fix it, let's try using the method on your printout. To access the content settings screen, click the button in the top right that looks like three lines. Click on Preferences. A new window will open. Click on the 'Content' button and follow the instructions that you change the font size.

    There is another version of the instructions I just gave you, with screenshots, here: font size and zoom - increase the size of web pages

    Mozilla Support issues are all handled by volunteers, and at peak hours, there may be a delay. Thanks for your patience!

    I hope this helps.

    Jayelbe

  • A way to change the font, size and "BOLD" to each page?

    Due to problems described here https://support.mozilla.org/en-US/questions/1012057?esab=a & s = & r = 0 & as = s I erase that I need something (an extension, perhaps) I want to recognize and change the font size and "BOLD" fonts in each page.
    Is there something like this?
    Maybe also for the bookmarks bar...

    You can use the NoSquint extension to define the size of the font (zoom text/page) and the color of the text on web pages.

  • You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    What problems are you having with the arrow? You go to Tools-> annotate-> arrow and an arrow appears. Then you can drag around the head and tail to make it to the desired location.

  • possible to change the font size of the bookmark toolsbar?

    possible to change the font size of the bookmark toolsbar?
    upgrade to firefox v22 and notice this bookmark toolsbar got bigger, some bookmark font cannot be displayed, it is normal? possible to change?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution.
    You can adjust the resolution of your screen.
    To change it follow these steps:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • How to change the font size and color in the toolbar Firefox 10?

    I was switched to Mozilla Firefox 10.0 by a representative of Dell. I had been using IE8. I have the Windows 7-64 bit operating system. I can't read my toolbar on Mozilla it is so small and the police is black with gray background! Is this not a great combination. Is anyway to change the font size of toolbar and from the colour? I downloaded the module Amazon on WOW! It's clear as a Bell, but Mozilla is absolutely horrible. If I can't get the editing toolbar I need to know another browser to use cause after only 5 hours trying to customize and use Firefox 10.0 I'm all done. I can't get any telephone communication or chatline support. I was in the knowledge base up until I can recite! And Kaspersky is not compatible. More of a nightmare what I need.

    Theme font & size changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • I was using Firefox on a Web site, and all of a sudden, everything changed for these little characters that I can hardly read it. Any suggestions as to how I can change the font size? Ray Fowler

    When you use Firefox, the font size is automatically changed to so small I can hardly read it. How can I change the font size in Mozilla Firefox?

    Reset the page zoom on pages that cause problems: view > Zoom > reset (Ctrl + 0 (zero); Cmd + 0 on Mac)

  • What happened to the bar that says 'file, edit' etc.? How can I change the font size to display Hotmail? Where can I access 'Cancel '? Thank you-

    How can I access the toolbar which includes "file, print" etc.? How can I change the font size of my hotmail home page? It used to be using "display".

    In Firefox 3.6 and later Windows, you can hide the menu bar on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press F10 or press and hold the Alt key to bring up the menu bar temporarily.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select to show or hide toolbars (click on an entry to switch from the State).

    See also what happened to the file, edit and view menus? and http://kb.mozillazine.org/Toolbar_customization

  • where to find how to change the font size

    My emails I receive are printed so small that I can't read. I want to change the font size.

    This has happened

    Each time Firefox opened

    Whenever I have print copy from my screen out so small that I can't read. How can I enlarge the type.

  • Is there a way to change the font size in the comments to a readable/superior police box? I went into preferences and tried making it bigger, and it does not work. Thank you.

    Is there a way to change the font size in the comments to a readable/superior police box? I went to Keynote > Preferences > General and tried making it bigger, and it does not work. Keynote 6.6.1 thanks.

    The fonts themselves, or one of the font attributes cannot be changed; (size, color, tabs or alignment)

    Although it would be very helpful to change the font size, in normal circumstances, this should not be a problem; comments are designed as a personal note by the designer and should only ever be seen by them.

  • Change the font size on HP5520

    Please tell me how to increase the size of the font on my Hp5520 A-I-O printer without affecting my office.

    My pages print in very small print.

    Thank you

    Mima,.

    Examples:

    ===========================================================================

    Firefox > file > print preview > >

    Two Options > >

    Scale

    OR

    Page Set Up > Format & Options - includes scale and shrink to fit Page Width option

    ============================================================================

    Internet Explorer > file > print preview >

    Shrink to Fit > > provides the overall percentage of the print size - could be preset to "fit to page".

    AND / OR

    Internet Explorer > file > Page Setup >

    Clear the check BOX Select the shrink to Fit > > Presets of the 100% print page

    ============================================================================

    Chrome > > this browser seems devoid of other browsers use controls

    • You may have difficulty the view before printing - check with other users of Chrome to check
    • You can change the font size used by Chrome, permanently if the problem is constant:
    • Customization bars > settings > advanced > Web content > font size

    =========================================================================

    Most browsers:

    To set a Web page view before printing:

    PC:

    Cntrl + more

    Cntrl - small

    Mac

    * Cmd + more

    Cmd - small

    * Command key

    -----------------------------------------------------------------------------------------------------------

    Reference:

    Manage the print with preview output before printing

    When you see a post that will help you,

    Who inspires you, gives a cool idea,

    Or you learn something new.

    Click the 'Thumbs Up' on this post.

    My answer-click accept as Solution to help others find answers.

  • 8.2 mail is possible to change the font size in the e-mail inbox list? It is necessary to do in Mail preferences, but nothing happens.

    8.2 mail is possible to change the font size in the e-mail inbox list? Otherwise why is there a place to do it in the Prefs of Mail. ?

    Using OS X Yosemite, version 10.10.5, iMac (21.5 inch, at the end of 2013)

    Intel Core i5 at 2.7 GHz

    8 GB 1600 MHz DDR3

    You try to change the font size in the sidebar (files)?

    Maybe this helps: settings > general > size of the sidebar icons.

    Maybe change the resolution of the screen could help?

    Good luck

  • change the font size in the macbook air

    How do you change the font size in a mac book air?

    I assume that you are looking to increase the size of all the text that you see in all applications - system-wide. In this case, please open System Preferences > accessibility. Check out the options at your disposal under Vision. You can "zoom in" the entire screen by using a combination of keys.

    Some applications (such as Safari) allow you to zoom in on the screen using a two finger trackpad gesture.

    Font sizes are changed to applications (such as Pages) by using a text editing menu selection, but there is no way equivalent to achieve in the Finder (for example) or other applications that are not intended to manipulate text.

  • How to change the font size to print documents?

    Original title:

    Printer prints very small fonts
    How can I change this font?
    It was working fine

    Hello

    Generally, we change the font size in the application with which we try to print.

    1. what application you use to print?

    2. what operating system is installed on the computer?

    You can view the following link to learn more about print options:

    Choose printing options

    http://Windows.Microsoft.com/en-us/Windows7/choosing-print-options

    Let us know if it helps!

Maybe you are looking for