The `local` provider does not perform font metric optimization
dungsil opened this issue · 2 comments
Reproduction link: https://github.com/dungsil/issues/tree/main/nuxt-fonts-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].