# Determine if a font is installed and available

**URL:** <https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550>\
**Category:** General\
**Created:** [December 7, 2018, 4:35pm UTC](https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550 "2018-12-07T16:35:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [December 7, 2018, 4:35pm UTC](https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550/1 "2018-12-07T16:35:56Z")

</div>

Hi Folks,

Do any of you have experience with determining the availability of a font on the user system to recommend a solution to the below?

One of my apps needs a reasonable (read NOT Courier) mono spaced font on Linux. I’ve determined that there are 4 really good options:

- Liberation Mono
- Nimbus Mono L
- Noto Mono
- Ubuntu Mono

However, in a beta test we’ve learned that not every Linux Distro is guaranteed to have any of them specifically (so I would fall back to Courier if that was the only one available). I’d like to have a way to step through the fonts in that order and select the first that is available.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [December 7, 2018, 4:41pm UTC](https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550/2 "2018-12-07T16:41:06Z")

</div>

from LR :

[code]Function FontAvailable(FontName As String) As Boolean  
Dim fc As Integer  
fc = FontCount - 1

For i As Integer = 0 To fc  
If Font(i) = FontName Then  
Return True  
End If  
Next  
Return False  
End Function[/code]

---

<div class="post-metadata">

**Author:** ![Tim\_Jones](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_jones/32/8627_2.png) [@Tim\_Jones](https://forum.xojo.com/u/Tim_Jones)\
**Post date:** [December 7, 2018, 5:34pm UTC](https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550/3 "2018-12-07T17:34:37Z")

</div>

Obviousness strikes again :).

Thanks @Jean-Yves Pochez

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:29pm UTC](https://forum.xojo.com/t/determine-if-a-font-is-installed-and-available/46550/4 "2020-10-29T19:29:16Z")

</div>


