# Random font for multiple fields, code clean-up help

**URL:** <https://forums.ankiweb.net/t/random-font-for-multiple-fields-code-clean-up-help/8458>\
**Category:** Card Design\
**Created:** [March 18, 2021, 12:44pm UTC](https://forums.ankiweb.net/t/random-font-for-multiple-fields-code-clean-up-help/8458 "2021-03-18T12:44:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![yaoberh](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/yaoberh/32/7505_2.png) [@yaoberh](https://forums.ankiweb.net/u/yaoberh)\
**Post date:** [March 24, 2021, 2:28pm UTC](https://forums.ankiweb.net/t/random-font-for-multiple-fields-code-clean-up-help/8458/9 "2021-03-24T14:28:00Z")

</div>

Sorry I didn’t respond earlier. This works splendidly! Thanks a lot. Was wondering, is it possible to have the text shuffle also between vertical and horizontal?  
const alignments = [“justify”,“left”,“center”,“right”];

Which option would allow me to have vertical text as an option? Or an even better option, having it randomly choose if it appears horizontal or vertical and in one of those positions. For example  
Horizontal+left, center+vertical, etc.  
Is this doable?  
Thanks a lot for your help!

---

_[View the full topic](https://forums.ankiweb.net/t/random-font-for-multiple-fields-code-clean-up-help/8458)._
