# Windows Font List?

**URL:** <https://forum.xojo.com/t/windows-font-list/34121>\
**Category:** Windows\
**Created:** [October 24, 2016, 2:12pm UTC](https://forum.xojo.com/t/windows-font-list/34121 "2016-10-24T14:12:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoff\_H1](https://forum.xojo.com/user_avatar/forum.xojo.com/geoff_h1/32/5987_2.png) [@Geoff\_H1](https://forum.xojo.com/u/Geoff_H1)\
**Post date:** [October 24, 2016, 2:12pm UTC](https://forum.xojo.com/t/windows-font-list/34121/1 "2016-10-24T14:12:14Z")

</div>

How do I retrieve the list of font names that are currently installed in Windows? I’ve looked on here and found iOS examples but none for Windows. Thanks!

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [October 24, 2016, 2:25pm UTC](https://forum.xojo.com/t/windows-font-list/34121/2 "2016-10-24T14:25:54Z")

</div>

```auto
for i=0 to fontcount-1
msgbox font(i)
next i
```

The LangRef is your friend

---

<div class="post-metadata">

**Author:** ![Geoff\_H1](https://forum.xojo.com/user_avatar/forum.xojo.com/geoff_h1/32/5987_2.png) [@Geoff\_H1](https://forum.xojo.com/u/Geoff_H1)\
**Post date:** [October 24, 2016, 2:42pm UTC](https://forum.xojo.com/t/windows-font-list/34121/3 "2016-10-24T14:42:59Z")

</div>

Crap! How did I miss that? Thanks Dave. I was just in the font section too. 😕

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 24, 2016, 4:02pm UTC](https://forum.xojo.com/t/windows-font-list/34121/4 "2016-10-24T16:02:19Z")

</div>

Instead of using a MsgBox, I strongly suggest to use a TextArea and put the fonts name there.

But, if you like to press the OK button

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [October 24, 2016, 4:02pm UTC](https://forum.xojo.com/t/windows-font-list/34121/5 "2016-10-24T16:02:40Z")

</div>

Emile, it’s example code from the documentation.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 24, 2016, 6:09pm UTC](https://forum.xojo.com/t/windows-font-list/34121/6 "2016-10-24T18:09:57Z")

</div>

Thank you Tim: I do not knew.

So, this is bad example. I am surprised that I do not saw it by myself. Usually, I am particularly good at finding documentation (others) bugs.

Also, I report it because sometimes I copy/paste provided code without really read it until it runs. Then I start to read it.

At last, I do not rant about the person advice, I only alert the reader. I get crash (longtime ago) when I first used that report ‘technic’. Then, I started to use EditFields (then, TextArea now) to get reports, and this is far better: I can copy/paste for later reading/checking.

Is it not allowed to fine tune an answer ?

---

<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, 6:31pm UTC](https://forum.xojo.com/t/windows-font-list/34121/7 "2020-10-29T18:31:39Z")

</div>


