Skip to main content
Question

How can I access the raw font data

  • November 25, 2021
  • 5 replies
  • 1080 views

mohan_vadivel

Is there is any way to access the font data of listAvailableFontsAsync() fonts.

loadFontAsync() downloads the font but doesn’t return anything.

This topic has been closed for comments

5 replies

tank666
  • 4863 replies
  • November 25, 2021

What font data do you want to get? Font family and style?


mohan_vadivel

I’ve an idea for a plugin, related to opentype feature of the font.
So for that I need to access the raw font data.

Is there is any way to access raw font data inside figma?


tank666
  • 4863 replies
  • November 25, 2021

By “raw font data” do you mean the OpenType features of any available font? Plugin API does not provide such functionality.


mohan_vadivel

I need the path data for all the glyphs inside font file, which can be accessed from the raw font file data.

loadFontAsync() makes an xhr request and makes the font available in the context, if it also return the retrieved font data, that would solve my need 🙂


  • 0 replies
  • December 25, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings