# Load custom font in Processing Android Core (made not in PDE)

**URL:** <https://discourse.processing.org/t/load-custom-font-in-processing-android-core-made-not-in-pde/28300>\
**Category:** Processing for Android\
**Created:** [March 6, 2021, 5:09pm UTC](https://discourse.processing.org/t/load-custom-font-in-processing-android-core-made-not-in-pde/28300 "2021-03-06T17:09:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kitulous](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kitulous/32/12302_2.png) [@Kitulous](https://discourse.processing.org/u/Kitulous)\
**Post date:** [March 6, 2021, 5:09pm UTC](https://discourse.processing.org/t/load-custom-font-in-processing-android-core-made-not-in-pde/28300/1 "2021-03-06T17:09:16Z")

</div>

Hi everyone. I’m having troubles with understanding how to bundle a TTF/OTF font with my Processing app.  
To clarify, I do not make the app in PDE/APDE, because I find it to be very simple and I miss my refactoring tools and good autocompletion. So I use Android Studio.

The app works perfectly, except for the fact that I can’t in my life understand how to createFont(…) with a TTF file.  
I do not know where to put it.  
createFont(“Monospaced”, …) works perfectly (i.e. with a built-in Android font).

So what I tried:  
createFont(dataPath("") + “/kaitiotf.otf”, 64) yields java.lang.RuntimeException: Font asset not found /data/user/0/com.kitulous.chineselearn2/files/kaitiotf.otf

So does createFont(“kaitiotf.otf”, 64).

The file actually exists at that location:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/24f8fb8731fc5ceb744bc033c083a42ce434d89b.png)

I have READ/WRITE\_EXTERNAL\_STORAGE permissions in my manifest and I have also requested them in code with requestPermission(String) and have given them permissions.

hasPermission(“android.permission.READ\_EXTERNAL\_STORAGE”) evaluates to true, so does WRITE.

---

<div class="post-metadata">

**Author:** ![Kitulous](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kitulous/32/12302_2.png) [@Kitulous](https://discourse.processing.org/u/Kitulous)\
**Post date:** [March 7, 2021, 7:06am UTC](https://discourse.processing.org/t/load-custom-font-in-processing-android-core-made-not-in-pde/28300/2 "2021-03-07T07:06:59Z")

</div>

Btw I’ve found the solution myself.  
The Processing Core.jar Android’s “data” folder is in app/src/main/assets  
And you just load the font normally: createFont(“file.ttf”, size)

I guess this should have been clarified somethere on Processing for Android website.
