# Bitmap Font Text upside down when setting a text size

**URL:** <https://phaser.discourse.group/t/bitmap-font-text-upside-down-when-setting-a-text-size/5430>\
**Category:** Phaser 3\
**Created:** [March 7, 2020, 6:16pm UTC](https://phaser.discourse.group/t/bitmap-font-text-upside-down-when-setting-a-text-size/5430 "2020-03-07T18:16:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmb272](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jmb272](https://phaser.discourse.group/u/jmb272)\
**Post date:** [March 7, 2020, 6:16pm UTC](https://phaser.discourse.group/t/bitmap-font-text-upside-down-when-setting-a-text-size/5430/1 "2020-03-07T18:16:58Z")

</div>

Hi

I’m playing around with bitmap text objects but something weird is happening.

Whenever I set the font size, the text appears upside down. It’s fine If I don’t set the font size, but ideally I’d like to use the same font at different sizes.

I know I could just rotate it, but I’d rather find out why its behaving this way and how to fix it without having to rotate it.

Here is my code:

```javascript
var config = {
  type: Phaser.AUTO,
  width: 640,
  height: 480,
  scene: {
    preload: preload,
    create: create,
  }

};

var game = new Phaser.Game(config);

function preload() {
  this.load.bitmapFont('oxanium', 'assets/fonts/Oxanium_0.png', 'assets/fonts/Oxanium.fnt');
}

function create() {
  // right way up (no size parameter).
  let text = this.add.bitmapText(320, 180, 'oxanium', 'Hello world!');

  // upside down
  //text.setFontSize(32);

  // upside down (size parameter specified).
  //let text = this.add.bitmapText(320, 180, 'oxanium', 'Hello world!', 50);

  text.setOrigin(0.5);
}
```

**assets/fonts/Oxanium\_0.png**  
(White text on a transparent background, open the image in a new tab or download it to see it properly).

![Oxanium_0](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/3/30c62d8a8b65eee75fc42374b824126e2fdb10ad.png)

**assets/fonts/Oxanium.fnt**

[Oxanium.fnt](https://phaser.discourse.group/uploads/short-url/16sBwWmkmeHg7icOpDtqUfb8Lxd.fnt) (33.9 KB)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [March 7, 2020, 6:39pm UTC](https://phaser.discourse.group/t/bitmap-font-text-upside-down-when-setting-a-text-size/5430/2 "2020-03-07T18:39:26Z")

</div>

The font file has `size="-70"`. Try changing that to `70`.

---

<div class="post-metadata">

**Author:** ![jmb272](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jmb272](https://phaser.discourse.group/u/jmb272)\
**Post date:** [March 7, 2020, 7:08pm UTC](https://phaser.discourse.group/t/bitmap-font-text-upside-down-when-setting-a-text-size/5430/3 "2020-03-07T19:08:51Z")

</div>

That did it. Thanks samme 🙂
