# Font sizes don't match

**URL:** <https://forum.juce.com/t/font-sizes-dont-match/65786>\
**Category:** General JUCE discussion\
**Created:** [April 11, 2025, 8:27am UTC](https://forum.juce.com/t/font-sizes-dont-match/65786 "2025-04-11T08:27:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [April 11, 2025, 8:27am UTC](https://forum.juce.com/t/font-sizes-dont-match/65786/1 "2025-04-11T08:27:51Z")

</div>

Hi,

I thought that with JUCE 8, all font issues were resolved. However, I’m still seeing differences when copying font settings from Figma to JUCE, the sizes don’t match exactly. I typically have to increase the font size by 1 or 2 pixels in JUCE.

Is there a way to get correct font sizing in JUCE without having to make these adjustments?

Best,

Jelle

---

<div class="post-metadata">

**Author:** ![gavinburke](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@gavinburke](https://forum.juce.com/u/gavinburke)\
**Post date:** [April 11, 2025, 9:22am UTC](https://forum.juce.com/t/font-sizes-dont-match/65786/2 "2025-04-11T09:22:37Z")

</div>

Yeah, I noticed this, but you can also have a helper figmaToJuce which will solve the issue.

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [April 11, 2025, 9:31am UTC](https://forum.juce.com/t/font-sizes-dont-match/65786/3 "2025-04-11T09:31:30Z")

</div>

Sure, but is the font adjustment the same for all fonts? And is it the same on mac vs Windows? Is the font size a fixed pixel adjustment or is it a relative proportion to the font size? I don’t want to need to think about this…

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 14, 2025, 6:43pm UTC](https://forum.juce.com/t/font-sizes-dont-match/65786/4 "2025-04-14T18:43:41Z")

</div>

Some recommendations:

- Make sure you’re using portable metrics (`TypefaceMetricsKind::portable`) for your `Font` instances.
- When setting font sizes, there are generally two functions you can use, a `Height` version, and a `PointHeight` version (e.g. `setHeight()` and `setPointHeight()`). You should generally prefer the `PointHeight` versions if you’re trying to match the sizes you see in other programs. Be careful when calling `Font` and `FontOptions` constructors - the heights passed to these constructors do _not_ use points. It’s best to explicitly request points by calling `FontOptions{}.withPointHeight (...);`.

If none of that helps, then please provide the following, and I’ll try to work out what’s going wrong.

- an example of a font that displays differently in Figma to JUCE
- the font size you’re setting in Figma (ideally, share a Figma project)
- a snippet that shows how you’re drawing the same text in JUCE
