You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The local provider does not perform font metric optimization #171
Hello, @dungsil! I'm here to assist you with any bugs, questions, or becoming a contributor. Let's tackle this together! 🤖
The local provider does not perform font metric optimization because the current implementation does not support reading font metrics. This is indicated by a TODO comment in the code:
// TODO: support reading font metrics
This means that while the local provider can register and resolve font files, it does not have the capability to optimize font metrics, which is why local fonts like Pretendard are not optimized. In contrast, fonts from Google, like Inter, are likely optimized because the Google provider includes font metric optimization [1][2].
@danielroe really enjoyed your video on this module. I’m very keen to see if the fallbacks will slip past the watchful eyes of various designers I work with (they usually express a preference for blocking, if performance can handle it).
However I work pretty much exclusively with local fonts. From a quick survey of what’s available, the routes available to me right now for Nuxt 4 are:
test an install of just the fontaine package, not @nuxt/fontaine as this hasn’t been updated since Nuxt 3.
manually implement a fallback myself, calculating the values by eye.
Any updates? Local font optimisation though fontaine is very needed for custom design systems.
Currently working with custom fonts in nuxtui, which lack optimisation ootb.
Activity
nuxt/fonts#171
dungsil commentedon Jun 4, 2024
Reproduction link: https://github.com/dungsil/issues/tree/main/nuxt-fonts-171
dosubot commentedon Jun 4, 2024
Hello, @dungsil! I'm here to assist you with any bugs, questions, or becoming a contributor. Let's tackle this together! 🤖
The
localprovider does not perform font metric optimization because the current implementation does not support reading font metrics. This is indicated by a TODO comment in the code:// TODO: support reading font metricsThis means that while the
localprovider can register and resolve font files, it does not have the capability to optimize font metrics, which is why local fonts like Pretendard are not optimized. In contrast, fonts from Google, like Inter, are likely optimized because the Google provider includes font metric optimization [1][2].To continue talking to Dosu, mention @dosu.
asonnleitner commentedon Mar 13, 2025
Any ETA?
this-gavagai commentedon Jul 7, 2025
In the meantime, is it recommended to use @nuxtjs/fontaine in addition to this module?
simonhrogers commentedon Apr 3, 2026
@danielroe really enjoyed your video on this module. I’m very keen to see if the fallbacks will slip past the watchful eyes of various designers I work with (they usually express a preference for blocking, if performance can handle it).
However I work pretty much exclusively with local fonts. From a quick survey of what’s available, the routes available to me right now for Nuxt 4 are:
@nuxt/fontaineas this hasn’t been updated since Nuxt 3.NicolaSpadari commentedon Jul 22, 2026
Any updates? Local font optimisation though fontaine is very needed for custom design systems.
Currently working with custom fonts in nuxtui, which lack optimisation ootb.