# Centering Text

**URL:** <https://forum.choiceofgames.com/t/centering-text/2003>\
**Category:** Game Development\
**Created:** [January 28, 2014, 11:13am UTC](https://forum.choiceofgames.com/t/centering-text/2003 "2014-01-28T11:13:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hikaru](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hikaru/32/1105_2.png) [@Hikaru](https://forum.choiceofgames.com/u/Hikaru)\
**Post date:** [January 28, 2014, 11:13am UTC](https://forum.choiceofgames.com/t/centering-text/2003/1 "2014-01-28T11:13:24Z")

</div>

I’ve recently encountered a problem while using Choicescript, and that’s the ability to center text.  
While trying to incorperate images in my game, I’ve found the need to add captions at the bottom of images, like so:

_ **This is a Magic Circle used by Spectors while casting spells.** _

I can’t seem to find any center commands or a way to center text under the image (using spaces isn’t exactly and normally will cause an error, i.e. “Indent not expected, line #”), by default the text will lean towards the left, is there any fix to this? And if not, can we expect an update with a new center command?

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [January 28, 2014, 11:15am UTC](https://forum.choiceofgames.com/t/centering-text/2003/2 "2014-01-28T11:15:49Z")

</div>

You can add the functionality yourself, but there’s no officially _supported_ method yet.

---

<div class="post-metadata">

**Author:** ![Hikaru](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hikaru/32/1105_2.png) [@Hikaru](https://forum.choiceofgames.com/u/Hikaru)\
**Post date:** [January 28, 2014, 11:16am UTC](https://forum.choiceofgames.com/t/centering-text/2003/3 "2014-01-28T11:16:58Z")

</div>

@CJW I see, thanks for the information then.

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/268356_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [January 28, 2014, 11:25am UTC](https://forum.choiceofgames.com/t/centering-text/2003/4 "2014-01-28T11:25:58Z")

</div>

Your gamebook seems really intricate and like a labor of love already 🙂

EDIT  
One thing you could do is put the label as part of the image

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [September 9, 2016, 8:07pm UTC](https://forum.choiceofgames.com/t/centering-text/2003/5 "2016-09-09T20:07:03Z")

</div>

Sorry for the revive, but I am running into the same issue currently. I want to center the chapter number and chapter name on the screen. How would I add that in myself, and when do you think a supported command would be added to the script?

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [September 9, 2016, 8:21pm UTC](https://forum.choiceofgames.com/t/centering-text/2003/6 "2016-09-09T20:21:46Z")

</div>

As far as I know it’s still not supported, though I haven’t tried recently. If it isn’t, I think you’re out of luck with that for a while. What I have seen is people using images for chapter titles (see @Cataphrak’s Infinity series for an example), which you can center, oddly enough.
