# API to list which fonts are available / detect if text has missing font

**URL:** https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629
**Category:** UXP Plugin API
**Tags:** api-feedback
**Created:** [February 11, 2019, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629 "2019-02-11T14:18:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)
#### Post date: [February 11, 2019, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/1 "2019-02-11T14:18:28Z")

</div>

Fonts are notoriously tricky.  
Being able to add character styles in the assets is very cool but…

I’ve deliberately added a missing font and this is what I got in the assets panel:

![missing-font](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/be543f454cc866cf6d3001d355369c6cc53c327f.png)

The new style has been correctly added and, obviously, it shows the warning icon.  
So, XD **knows** that the font is **not** installed.  
Is there a way to retrieve such information to be sure that fonts are available **before** adding them?

---

<div class="post-metadata">

### Author: ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)
#### Post date: [February 11, 2019, 7:45pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/2 "2019-02-11T19:45:01Z")

</div>

This is something we will be adding to the API surface in the future, but _currently_ there’s no way to know if the font is or isn’t available.

… unless you get in to some really hacky text measurement stuff…, which funnily enough is how you’d do it with JavaScript in a browser, too. (Excluding fallbacks)

---

<div class="post-metadata">

### Author: ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)
#### Post date: [August 22, 2019, 1:14pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/3 "2019-08-22T13:14:18Z")

</div>

@kerrishotts, any update regarding this topic?  
Further, will API support access to system fonts folder in the near future?

---

<div class="post-metadata">

### Author: ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)
#### Post date: [August 22, 2019, 3:37pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/4 "2019-08-22T15:37:27Z")

</div>

We’ve decided to put this feature in the “future” column, which means the request will be addressed next year

---

<div class="post-metadata">

### Author: ![mightyalex](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mightyalex/32/777_2.png) [@mightyalex](https://forums.creativeclouddeveloper.com/u/mightyalex)
#### Post date: [March 28, 2020, 5:01pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/5 "2020-03-28T17:01:04Z")

</div>

Is there any update on this? I started building a plugin for better font picking and want to do it the proper way i.e. if the API provides a list of installed fonts. For now there is the hacky way @kerrishotts mentioned and making the user select their ‘Fonts’ folder which I’m using for now.

---

<div class="post-metadata">

### Author: ![Ali](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ali/32/21_2.png) [@Ali](https://forums.creativeclouddeveloper.com/u/Ali)
#### Post date: [March 22, 2021, 1:26pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/6 "2021-03-22T13:26:57Z")

</div>

Has this feature ever been added to the API?

---

<div class="post-metadata">

### Author: ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)
#### Post date: [March 22, 2021, 3:07pm UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/7 "2021-03-22T15:07:40Z")

</div>

@demianborba FYI ^^^ – I don’t think this ever happened, but might be worth adding an API here.

---

<div class="post-metadata">

### Author: ![MartinBailey](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/martinbailey/32/1416_2.png) [@MartinBailey](https://forums.creativeclouddeveloper.com/u/MartinBailey)
#### Post date: [October 18, 2025, 12:06am UTC](https://forums.creativeclouddeveloper.com/t/api-to-list-which-fonts-are-available-detect-if-text-has-missing-font/629/8 "2025-10-18T00:06:57Z")

</div>

I recently noticed that the API now contains TextFonts and TextFont.

And there are code snippets available by searching with Google to create system font selection pulldowns for use in UXP plugins.

Is this something that we can now use?

> **[TextFonts](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/textfonts/)**
