Set different font sizes for certain parts of the text layer?

I am a novice as AE is going, but I'm working on a script to dynamically change a project.

The project in question has a text layer has a single string, but with variable font size (the text is a price, where the hundred part is a smaller font to the different initial values).   I want to use a script to change this text, but it is enough to assign a new text document does not retain the variable formatting - all figures are found with the same font size.

Since the guide of the script, I see that the size of the font of a text document object is available, but only in a very limited form - definition of value he sets for the entire document, without options to set for a range of characters.  I would be fair to assume that programmatically create/update a document with several sizes of fonts is not possible?

If this is the case, what would be my best options to achieve the same effect?  If the project is modified to have several layers/documents, is there a way to adjust the positioning to maintain good spacing/kerning between independent channels?  (I'm also a dollar with yet another sign size of police prior to the price, so I would have actually three pieces of text to position in my script and just to the right/left cannot justify two strings).

Thanks for the tips!

AFAIK, there isn't a convenient way for a script to maintain several font sizes once it changes a text document.

You can however, use sourceRectAtTime() to get the actual span of text in a text layer, positioning and three text layers to get the desired spacing is not difficult.

Dan

Tags: After Effects

Similar Questions

  • Font size unstable when you create the text layer in batch processing

    Hello

    Using photoshop CS6 on Mac, I see a problem with one of my batch sript which is only task is to apply a water embossed mark to the images that I've resized so that the longest side is always 500px. (varies depending on how I've cropped short side).

    In most cases, the text element, I add to the image seems to be in good condition. But then no reason apparent, it will suddenly apply the text (that I put to 24pt) and it means big. To solve the problem, I have to reduce the size of police (via shares pallate) down to 8 pt. Then he begins to appear more or less correctly (for a while) up to maybe a few weeks later, when I open photoshop to run the task again and suddenly pt 8 fonts is FAR too small and I have to bump up to 24pt again.

    I don't know what I could do to cause this problem. I never waste time with processing another batch and then to resolve this issue when it occurs.

    Thank you

    If this is the cause of the problem, a step in the Action that changes the resolution of 300ppi ("with resampling"unchecked) could help.

  • Why the different font sizes when formatting, it's the same?

    When I reply to a message in HTML (in HTML) text of type I is a different size than in the original message. The text of the original message is "body text, Arial, medium. If I format my answer exactly the same text, the font is smaller than the original. If I increase the font size, the police is larger than the original. Why text passages are not formatted in exactly in the same way, the same?

    Thunderbird may be telling you, but he is average Arial. It's very probably Arial and a number in points or in pixels. Microsoft Outlook in particular spend an excessive amount of space on the specification of fonts (which are in fact not good in HTML)

    The only way to be sure exactly how the original mail is defined is to look at the source of the message (ctrl + U)

  • How do you use! = operator for just part of the text?

    I would use a simple if statement.

    {if(filenametext!=".jpg")}

    }

    else {blah blah blah}

    How can I check, so it gives me true or false so just in the file name includes the .jpg?  Is the only way to analyze the file name?

    Watch in the String.substr () method and concentrate on what he said about the use of a negative value for the start parameter.

  • Displays a text ("sample application") Logo and Description ("this is a sample application") with different font size

    Hello


    I use the universal theme of apex 5.0 and tries to display logo text ("sample application") and description ("This is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - < span style = "" are-size: 3.8 rem; ' > Sample App </span > - < span style = "" Dimensions are: 1.8 rem; "> this is a sample application </span >" "

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    I tried to use the logo attribute, but what makes the whole logo & its description with the same size. I need size of different font for both, so it is unusable.

    Attribute logo - style = "" are-size: 3.8 rem; ""

    Really appreaciate help.

    Thank you

    Deepak

    DeepakJ wrote:

    I use the universal theme of apex 5.0 and tries to display the text of the logo ("sample application") and description ("this is a sample application") with different font size.


    Type of logo - text

    Logo - sample application - this is a sample application.

    I want to display the description in the smallest font size, so I changed the Logo below

    Logo - application example - This is an example of application.

    But I have following problem.

    1 - the font size for both is the same (why the size is not different?, because I gave the size of different font within the span tag)

    Cannot reproduce. Using the code above results in different format text as expected. (He looks terrible IMO)

    2 - the text of the whole logo whose description is displayed twice.

    -Once in place of the actual logo and

    -the second on the left upper tree navigation. (just below the text of the actual logo)

    Including HTML tags in text in the 5.0/theme 42 APEX logos results in this behavior. I consider this as a bug as (a) it says nowhere that it is not possible to do so; (b) the text of the logo is not HTML - or attribute-escaped when used in the page.

    See How to avoid to show the logo on the navigation bar to get an explanation of the underlying cause and a workaround to allow the common use cases include the text and a picture in the logo. This particular solution is of no use here. The solution to this problem requires a custom with the theme the theme roller style sheet, which is the preferred way and support to customize and extend the universal theme.

    • Click the Thème Roller on the developer toolbar.
    • Expand the CSS custom section.
    • Add this style custom rule:
    .t-Header-logo a span {
      font-size: 3.8rem;
    }
    .t-Header-logo a span:after {
      font-size: 1.8rem;
      content: " - This is a sample application.";
    }
    
    • The page will automatically preview changes.
    • Click on record under and type a name for the style of custom theme.
    • Topic close Roller
    • I hope that decide that it is not a good idea and cancel the mods.
  • How to have different font style for different tree node?

    Hello

    How can I have different font style for different tree node?

    for example,.

    Tree level1

    -Scale of the tree 2

    the level1 tree has 12 font size and tree level 2 has 22 font size.

    Thank you

    Set variableRowHeight = true on the tree.

    Subclass TreeItemRenderer, override the listData setter and change the fontSize based on the TreeListData.level.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • In Windows Live Movie Maker, how to make a subtitle with the inner different font sizes?

    How to make a subtitle with different font sizes, as in the old Windows Movie Maker?

    I want to produce an effect video, like MTV clips that fade in and out for video (not before or after the video). It of about what I want to produce and could not because the new WLMM seems to have this deleted title feature.

    My song (large)
    Composer (small fonts)

    I want that this block of text fade in and out for my video. Is there a way to do this? Otherwise I would feel obliged to go back to the old WMM.

    FWIW... going back to an older version of Movie Maker
    Maybe the answer. You need to restart your
    because the Live Movie Maker WLMP project project files
    would be not compatible.

    No guarantee but the next for an installable download
    version of Vista Movie Maker 6 may be worth a try

    * Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows Movie Maker Installer for Windows 7
    http://noeld.com/programs.asp?cat=video#wmminst

    Also, Movie Maker 2.6 will work on Windows 7:

    Windows Movie Maker 2.6
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&id=34
    (this is similar to the version of Win XP Movie Maker 2.1)

  • [ADF, JDev12.1.3] How to change the font size for all of the components of output within an af:panelBox?

    Hallo,

    I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.

    I tried to define a CSS class and to assign to the panelBox but it has not worked.

    You kindly suggest me an easy way to do this?

    Thank you

    Federico

    Hello

    You can try something like this:

    AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}

    your style

    }

    At least the style of the components you named should be changed. If you need more you can add others.

    Kind regards

    Ruben.

  • I use Hotmail on Mac and don't know how to increase the font size for my mails etc. You use the zoom + is only temp for the session. Suggestions please.

    I use Hotmail on a new Mac and don't know how to increase the font size for the display of my email. you use the zoom + is only one temp. Suggestions please.

    According to the format your help,.

    Hotmail format,

    Click Options at the top right,

    Then more options.

    Writing e-mail / click on fonts and signatures.

    Make you choices and save.

    New format for Outlook.com,

    Click on the gear in the top right, symbol

    Click Options,

    The options are almost the same.

    For more entries change your question and move it to the section of Hotmail, Messenger, and skydrive.

    Search by all subjects,

    Section Outllook.com or hotmail.com.

  • Can I change the font size for the mail application?

    For the purposes of mail, I want to change the font size.  In other words, the size of everything on the screen when I'm watching and reading mail (do not as much care of the font size in the mail I made up).  Hereby, I refer to the list of the mails which is located on the left of the screen, where it lists who it is from and the subject and the right of the screen, where the content of the selected mail mail message appears as follows.  In fact, it might just be a type of "zoom" as well, not necessarily affecting the size of font in itself.  Want just everything what I see on the screen, reading, to be bigger. Have looked under 'settings' and 'help' and can't find anything about it in two places.

    My mother is 90 and said: "it's so small, I can hardly read it.  Wow, thought new Windows 8 was supposed to be a new world, easy and user friendly; and yet, here, I am an "expert" was using the PC since the beginning of the Radio Shack, start Windows, etc... but have to post this question here.

    Thanks if you can help with that!

    Some of them depends on the capabilities of your display.  If she has enough pixels to do without causing interference, you can adjust the DPI (dots per inch) of scale and it will expand the size of the text and the items for you.

    To see if you can do it, go to your charm to search and type 'scale '.  Choose the search result it shows and then try the configuration in larger size.

  • the font size for the page numbers in the index

    I use 10 FM, creating an index for a book.  I can adjust the font size for the text down to 9 points, but page numbers are stuck at 12 points.  I can do 9 point individually, but they return to 12 points, when I save the book.  What should I do to get page numbers to stay in the point 9?    The same thing happens if I use the character or paragraph Designer.

    Earle Fox

    In the ... IX.fm file, what are the attributes of the tag IndexIXpara font by default ?

    No chance that they have been rejected by a character Format or a simple substitution of element prototype <$pagenum> on The IX reference Page?

  • Set the position of the cursor in the text added (to make the part of the text in index) in WORD using Report Generation Toolkit

    I would like to generate a report in WORD using the report generation toolkit.

    Whenever a text is added to the report, the program should put part of the text index. The problem I am facing with is to set the cursor position in the current location of the text.

    Any suggestions?

    Hello!
    I think that's what you wanted (see attachment).

    First, you must set position for each loop, so after adding the table, your cursor index need to increase the number of added characters. That's why I have included the text of the report, Append - to get the position of the cursor at the end.

    Indexing begins with 0, so you need to set the 3 and 7.

    Hope you get what I mean

  • Everything on my screen has tripled in size how it back to the normal size, ps I tried the right hand winder on cone and it just reduces the font size not all things on the screen itself

    Everything on my screen has tripled in size how it back to the normal size, ps I tried the right hand winder on cone and it just reduces the font size not all things on the screen itself

    Your lowered obtained resolution. This can occur if you are running an older game that uses 800 x 600 for example.

    Control Panel > display > settings - change the resolution to correct for your monitor. MS - MVP - Elephant Boy computers - don't panic!

  • What is a free screen recorder well let's you zoom in on certain parts of the screen?

    Free screen with Zoom recorder

    What is a free screen recorder well let's you zoom in on certain parts of the screen?

    Hello

    You may be able to search online using your search engine preferred for information on this subject.

    DISCLAIMER of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Can I reduce the size of the pagefile, or does this size for optimal performance of the rig?

    Hi all.

    I recently increased my memory of 4 GB to 12 GB.  I noticed that my pagefile has increased in size that corresponds to the installed memory.  Can I reduce the size of the pagefile, or does this size for optimal performance of the rig.

    See you soon.

    Original title: size of pagefile.

    Swap files are always important. UNIX, Linux, MacOS and Windows all set up to Exchange files and use them. Some applications also require the existence of a file...

    The only people who need to limit the size of pagefile are those whose disk space is very valuable to the critical operations of mission currently running on the computer.

    Do not be fooled into thinking that the loading RAM is the best option, because it's not like people in the above paragraph you would say.

Maybe you are looking for

  • Close a first VI after the passage of a second VI

    Ok.  I have a request to develop a program that will basically call first VI and then close it after the opening of a second VI.  I had not done this before (usually there is a VI 'main' at startup that runs within the program). I'm curious to know i

  • MS Updates won't install

    Can someone help me with this, please? I keep getting messages that I have updates installed, but after going through the motions, I get this message: "Updates were not correctly configured. Returning from the changes. » As a result, I have a lot of

  • Generate the report for the custom period

    I did experiment with Foglight NMS for the past few weeks. I have search in the forums and hunts around the tool, but I've not found a way to generate a report on a custom period. For example, I would like to run a report, see use of bandwidth during

  • Desktop HP Pavilion p6 - 2316 s

    I bought two new HP Pavilion p6 - 2316 s Desktop PC for my boys.  When purchasing I didn't there's opportunities for integrated wifi.  There isn't any wifi built into these machines.  I bought two cards Add on WiFi to fix on the motherboard, and of c

  • Solution for the Photosmart all-in-one 7520e Center

    I bought a Photosmart 7520e printer and installed the software from the CD that came with it.  Everything worked ok except the solution Center.  He said that the installation was complete.  I went to hp.com and download the full version and went off