# Having some issues with rendering text

**URL:** https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603
**Category:** Processing for Android
**Created:** [December 29, 2020, 11:27pm UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603 "2020-12-29T23:27:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![VigneshV](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@VigneshV](https://discourse.processing.org/u/VigneshV)
#### Post date: [December 29, 2020, 11:27pm UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/1 "2020-12-29T23:27:56Z")

</div>

I keep getting the following error despite me trying both createFonts() and loadFonts(). Does anyone else have this issue with processing 3 in android mode? Could anyone please tell me a way to tackle this?

Thank you

Inefficient font rendering: use createFont() with a TTF/OTF instead of loadFont().  
FATAL EXCEPTION: Animation Thread  
Process: processing.test.try\_with\_five\_meters, PID: 26610  
java.lang.OutOfMemoryError: Failed to allocate a 9763216 byte allocation with 9081184 free bytes and 8868KB until OOM, target footprint 268435456, growth limit 268435456  
at processing.a2d.PGraphicsAndroid2D.loadPixels(PGraphicsAndroid2D.java:2011)  
at processing.a2d.PGraphicsAndroid2D.endDraw(PGraphicsAndroid2D.java:249)  
at meter.Meter.drawMeterScaleLabels(Meter.java:1562)  
at meter.Meter.updateMeter(Meter.java:366)  
at processing.test.try\_with\_five\_meters.try\_with\_five\_meters.draw(try\_with\_five\_meters.java:133)  
at processing.core.PApplet.handleDraw(PApplet.java:1852)  
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 30, 2020, 12:48am UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/2 "2020-12-30T00:48:36Z")

</div>

Hi, @VigneshV Can you send a link to the font? A zip from Drive or something.?

---

<div class="post-metadata">

### Author: ![VigneshV](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@VigneshV](https://discourse.processing.org/u/VigneshV)
#### Post date: [December 30, 2020, 1:04am UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/3 "2020-12-30T01:04:08Z")

</div>

Hi @noel, thank you. Here is the zip of my data folder with three different fonts that I tried: [https://drive.google.com/drive/folders/1oo8fVVAddfnqgkEg9ar\_cF44vgtMRaFk?usp=sharing](https://drive.google.com/drive/folders/1oo8fVVAddfnqgkEg9ar_cF44vgtMRaFk?usp=sharing)

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 30, 2020, 2:21am UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/4 "2020-12-30T02:21:59Z")

</div>

Please give a free link. I don’t have permission.

---

<div class="post-metadata">

### Author: ![VigneshV](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@VigneshV](https://discourse.processing.org/u/VigneshV)
#### Post date: [December 30, 2020, 2:35am UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/5 "2020-12-30T02:35:39Z")

</div>

Sorry, I didn’t notice. [https://drive.google.com/folderview?id=1oo8fVVAddfnqgkEg9ar\_cF44vgtMRaFk](https://drive.google.com/folderview?id=1oo8fVVAddfnqgkEg9ar_cF44vgtMRaFk)

---

<div class="post-metadata">

### Author: ![SNICKRS](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SNICKRS](https://discourse.processing.org/u/SNICKRS)
#### Post date: [December 30, 2020, 3:21am UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/6 "2020-12-30T03:21:40Z")

</div>

I use fonts all the time in processing. For .vlw files, use loadFont(), for ttf or otf, use createFont(). Also, sometimes I get a bug when the extension is TTF instead of ttf, and it works when I change that.

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [December 30, 2020, 3:13pm UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603/7 "2020-12-30T15:13:14Z")

</div>

I have teste all three fonts on a Samsung 10, and a Lollipop, and they render perfectly.

```auto
PFont fontA; 

void setup() { 
  fullScreen(); 
  background(0, 0, 255); 
  textAlign(CENTER); 
  fontA = createFont("Aaargh.ttf", 80); 
  textFont(fontA); 
  text("ABC123abc", width/2, height/2);
}

```
