# Issues with loading fonts with CreateFonts

**URL:** <https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862>\
**Category:** Coding Questions\
**Created:** [November 24, 2022, 11:15pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862 "2022-11-24T23:15:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 24, 2022, 11:15pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/1 "2022-11-24T23:15:23Z")

</div>

Hi there, I am having issues loading fonts that I have installed on my Windows fonts folder .  
The message that I get every time is "  
“PPEiko-Medium” is not available, so another font will be used. Use PFont.list() to show available fonts."  
I get this message for all the fonts that I install … can somene helps please

---

<div class="post-metadata">

**Author:** ![Mikey83](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikey83/32/17956_2.png) [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Post date:** [November 25, 2022, 12:21am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/2 "2022-11-25T00:21:49Z")

</div>

Did you create a font from the tools menu? if not that’ll be the issue

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [November 25, 2022, 12:21am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/3 "2022-11-25T00:21:57Z")

</div>

Hi  
Here is some hints

> [@Font Install Issues](https://discourse.processing.org/t/font-install-issues/29557):
>
> Good morning all. I see this topic has been posted before, and resolved to some extent. I’m trying to add a font called “Conthrax”, however the Processing IDE will not load it. The font works in other programs such as MS Word, or Photoshop, so I know Windows is detecting it properly. The Processing font list shows odd entries for many fonts. I’ve tried reverting back to an old version, and updating to the latest version. I’ve tried listing the fonts using an array/list. I’ve tried addi…

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 25, 2022, 9:39am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/4 "2022-11-25T09:39:48Z")

</div>

Hi there, yes I did and also followed all the previous posts about this issue but i still cant find a way to load the fonts ☹

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 25, 2022, 9:45am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/5 "2022-11-25T09:45:26Z")

</div>

Hi there,I have addeted the font in the sketch with the font tool but it still gives me the same error ☹

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [November 25, 2022, 7:40pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/6 "2022-11-25T19:40:27Z")

</div>

Hi  
This is how I added font  
1 Download the font file without processing IDE  
2 drag or add the file to sketch folder

Here is the 7 segment font file download it

> **["DSEG": 7-segment and 14-segment free fonts](https://www.keshikan.net/fonts-e.html)**
>
> "DSEG" is a free font family, which imitate seven and fourteen segment display(7SEG,14SEG).

Then in processing side

```auto
PFont Segment ; 

 void setup() {
                          
  size(640,320);    
  Segment = createFont("Segment7", 150); // Assign fonts and size 
  }

```

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 25, 2022, 10:07pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/7 "2022-11-25T22:07:22Z")

</div>

Hi there I just followed your steps but i still get the error please see screenshot

 ![image.png](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/5/e574d6553d8b116cf6af3a93043ba4e0bceb2979.png)

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 25, 2022, 10:21pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/8 "2022-11-25T22:21:55Z")

</div>

Hello @bardo ,

Be sure to use the name of the font in the PFont list:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/e/6e169e3f1371f0039d6ffc4794246af964bebd92.png)

Reference:  
[https://processing.org/reference/createFont\_.html](https://processing.org/reference/createFont_.html)

`:)`

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 25, 2022, 10:44pm UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/9 "2022-11-25T22:44:24Z")

</div>

Hi there, the problem is that a lot of the fons that are installed correclty in windows and work correclty in all my programs, they wont show in the font list. Acually I can also see a very limited number of fonts in the font list. Also there are some fonts that are included in the font list but still give the error (please see screenshot)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/4/64f3fc0e7ab7cb74b1d84900688073b9c0d39255.png)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [November 26, 2022, 12:22am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/10 "2022-11-26T00:22:00Z")

</div>

hi

```auto
PFont Segment;

void setup() {
  size(600, 180);                      
  Segment = createFont("Segment7Standard.otf", 120); 
textFont(Segment);
 //textAlign(RIGHT);       
  fill(250,250,0);   
}

void draw()
{                      
  background(0, 0, 0);   

  textFont(Segment);
  text("123 JAFAL", 0, 120);
}

```

 ![Screenshot_2022-11-26-03-29-57-625](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/8/88744a562908f496a574a35aa00878c4e7fc3efd.jpeg)

Font from here

> **[Segment7](https://fontlibrary.org/en/font/segment7)**
>
> Segment7: Strictly seven-segment (plus point) calculator display face, fixed-width and free. Other LED/LCD digital fonts may kern or include paths that are not available with seven segments in order to represent characters better. Segment7 does the...

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 26, 2022, 12:44am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/11 "2022-11-26T00:44:08Z")

</div>

Hey it’s loading the fonts now 🙂 but how can i make this work within this piece of code that i was tryng to make it work? Please se below:

float mutationRate = 0.01;  
int totalPopulation = 250;

DNA population;  
ArrayList matingPool;  
String target;

PFont f;

void setup() {  
size(800,800);  
target = “KEEP SMILING”;

population = new DNA[totalPopulation];

for (int i = 0; i \< population.length; i++) {  
population[i] = new DNA(target.length());  
}

f = createFont(“Courier”,12,true);  
}

void draw() {  
for (int i = 0; i \< population.length; i++) {  
population[i].calcFitness(target);  
}

ArrayList matingPool = new ArrayList();  
for (int i = 0; i \< population.length; i++) {  
int nnnn = int(population[i].fitness \* 100);  
for (int j = 0; j \<nnnn; j++) {  
matingPool.add(population[i]);  
}  
}

for (int i = 0; i \< population.length; i++) {  
int a = int(random(matingPool.size()));  
int b = int(random(matingPool.size()));  
DNA partnerA = matingPool.get(a);  
DNA partnerB = matingPool.get(b);  
DNA child = partnerA.crossover(partnerB);  
child.mutate(mutationRate);  
population[i] = child;  
}

background(249,248,230);  
fill(255,139,139);  
String everything = “”;  
for (int i = 0; i \< population.length; i++) {  
everything += population[i].getPhrase() + " ";  
}  
textFont(f,12);  
text(everything,10,10,width,height);

}

---

<div class="post-metadata">

**Author:** ![bardo](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bardo](https://discourse.processing.org/u/bardo)\
**Post date:** [November 26, 2022, 12:54am UTC](https://discourse.processing.org/t/issues-with-loading-fonts-with-createfonts/39862/12 "2022-11-26T00:54:29Z")

</div>

HEY! I Made it work!! Thank you 🙂
