# Android scaling

**URL:** <https://forum.juce.com/t/android-scaling/31528>\
**Category:** General JUCE discussion\
**Created:** [January 30, 2019, 1:43pm UTC](https://forum.juce.com/t/android-scaling/31528 "2019-01-30T13:43:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Achder](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/achder/32/5897_2.png) [@Achder](https://forum.juce.com/u/Achder)\
**Post date:** [January 30, 2019, 1:43pm UTC](https://forum.juce.com/t/android-scaling/31528/1 "2019-01-30T13:43:01Z")

</div>

Hi,  
I’m trying to build a small app for Android. I’ve not really worked with Juce and Android. The problem I’m facing is different scaling. For my standalone code I set the size of my main component to 1080x1920. On my phone everything is scaled very wrong. I debugged the code and found out that in the Android the component always gets resized to 360x640 pixels.  
Can somebody explain what is happening and what’s the best way of handling sizes when developing with standalone (because it compiles way faster) and Android?

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [January 30, 2019, 2:42pm UTC](https://forum.juce.com/t/android-scaling/31528/2 "2019-01-30T14:42:43Z")

</div>

Funny, I just had to remove some scaling adjustment in an Android app (to reduce some sizes) since it was no longer necessary… not sure what changed or where but its now more in line with iOS.

---

<div class="post-metadata">

**Author:** ![Achder](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/achder/32/5897_2.png) [@Achder](https://forum.juce.com/u/Achder)\
**Post date:** [January 30, 2019, 2:46pm UTC](https://forum.juce.com/t/android-scaling/31528/3 "2019-01-30T14:46:53Z")

</div>

Ok, so I realized it’s probably mainly the font scaling. On android that fonts are way bigger. I included a custom font with the Projucer. It is the same font, but just way to big.

---

<div class="post-metadata">

**Author:** ![roeland-2](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/roeland-2/32/738_2.png) [@roeland-2](https://forum.juce.com/u/roeland-2)\
**Post date:** [February 1, 2019, 12:18am UTC](https://forum.juce.com/t/android-scaling/31528/4 "2019-02-01T00:18:23Z")

</div>

You’re probably looking at (or simulating) a phone with a high resolution display. If the dpi scale factor is 3 then you would get 360x640 _logical_ pixels on a 1080x1920 screen.
