Answers.Body: <p>Have you tried the parameter fontSize (note the lower case at beginning and upper case in the middle?)</p>
  <p><a href="https://community.adobe.com/t5/after-effects-discussions/expressions-accessing-text-property-fontsize-from-another-layer/m-p/10727207" rel="nofollow noreferrer">https://community.adobe.com/t5/after-effects-discussions/expressions-accessing-text-property-fontsize-from-another-layer/m-p/10727207</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-26T14:01:17.007Z
Answers.Text: The problem is isolating the font size expression on a portion of a text layer! So '#' is one size and 'mins' another. 
  I don't know how to integrate it into that expression I posted.
Answers.UserDisplayName: Apeiron_Sound
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-26T12:54:32.977Z
Answers.LastActivityDate: 2022-01-26T12:54:32.977Z
Answers.UserDisplayName: tomh
Answers.Body: <p>Would it work to right-align the number text layer, make a second left-aligned text layer for &quot;min&quot; and pick whip the position to the number text layer position?</p>
  <p>If you wanted a different alignment you could grab the number layer width and add that to the position so it would always be offset correctly.</p>
  <p><a href="https://i.sstatic.net/CIjsm.gif" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CIjsm.gif" alt="example" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-27T09:21:46.930Z
Answers.Text: Thanks for your reply! I know this would work but I need expression solutions only.
Answers.UserDisplayName: Apeiron_Sound
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-26T07:31:17.040Z
Answers.LastActivityDate: 2022-05-26T07:31:17.040Z
Answers.UserDisplayName: D34DC3N73R
Body: <p>I'm making a complicated watch UI with a lot of expressions linked to different values of the display.</p>
  <p>As you can see from the image below, <strong>9hrs</strong> isn't bonded to an expression yet, but it's graphically correct: <strong>9</strong> and <strong>hrs</strong> have different font sizes.</p>
  <p><strong>100min</strong> instead is bonded to an expression and it does disrupt the font formatting making <strong>min</strong> the same size as <strong>100</strong>.</p>
  <p><a href="https://i.sstatic.net/JhFtQ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JhFtQ.png" alt="screenshot" /></a></p>
  <pre><code>//This is the expression
  Math.round(thisComp.layer(&quot;Orange&quot;).content(&quot;Trim Paths 1&quot;).end.value.toFixed(0)) + &quot;min&quot; 
  </code></pre>
  <p><strong>Is there a way to tell that string that the font size for 'min' needs to be of 40px?</strong></p>
  <p><strong>PLEASE, EXPRESSION ANSWERS ONLY</strong></p>
  <p>Thanks!</p>
  
Tags: <after-effects><animation><after-effects-expressions>
Title: AE Expression: Define FontSize
UserDisplayName: Apeiron_Sound
ThreadText: # AE Expression: Define FontSize
  
  (Asked by: username_0 on 2022-01-25)
  
  I'm making a complicated watch UI with a lot of expressions linked to different values of the display.
  
  As you can see from the image below, **9hrs** isn't bonded to an expression yet, but it's graphically correct: **9** and **hrs** have different font sizes.
  
  **100min** instead is bonded to an expression and it does disrupt the font formatting making **min** the same size as **100**.
  
  [![screenshot](https://i.sstatic.net/JhFtQ.png)](https://i.sstatic.net/JhFtQ.png)
  
  ```
  //This is the expression
  Math.round(thisComp.layer("Orange").content("Trim Paths 1").end.value.toFixed(0)) + "min" 
  
  ```
  
  **Is there a way to tell that string that the font size for 'min' needs to be of 40px?**
  
  **PLEASE, EXPRESSION ANSWERS ONLY**
  
  Thanks!
  
  **Tags:** after-effects, animation, after-effects-expressions
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2022-01-26. Score: 0
  
  Have you tried the parameter fontSize (note the lower case at beginning and upper case in the middle?)
  
  <https://community.adobe.com/t5/after-effects-discussions/expressions-accessing-text-property-fontsize-from-another-layer/m-p/10727207>
  
  > **Comments:**
  > **username_0**: The problem is isolating the font size expression on a portion of a text layer! So '#' is one size and 'mins' another.  I don't know how to integrate it into that expression I posted.  
  
  ---
  
  ### Answer by username_2 on 2022-05-26. Score: 0
  
  Would it work to right-align the number text layer, make a second left-aligned text layer for "min" and pick whip the position to the number text layer position?
  
  If you wanted a different alignment you could grab the number layer width and add that to the position so it would always be offset correctly.
  
  [![example](https://i.sstatic.net/CIjsm.gif)](https://i.sstatic.net/CIjsm.gif)
  
  > **Comments:**
  > **username_0**: Thanks for your reply! I know this would work but I need expression solutions only.  
  
  ---
  
  