# How do you center text for NFO?

**URL:** <https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139>\
**Category:** Support\
**Created:** [November 16, 2021, 9:49pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139 "2021-11-16T21:49:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sham69](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@Sham69](https://community.mp3tag.de/u/Sham69)\
**Post date:** [November 16, 2021, 9:49pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/1 "2021-11-16T21:49:27Z")

</div>

I want to be able to center the text of the album artist, title, and year like I have below. I don't know how to do it besides manually adding spaces. %artist% - %album% (%year%) what else do I do? I'd also like to know how to add bold text and images if possible.

```auto
=====================================================================
               Buzzcocks - Singles Going Steady (1979)                
=====================================================================
Codec........: MPEG-4 AAC
Encoder......: qaac 2.72, CoreAudioToolbox 7.10.9.0, AAC-LC Encoder, TVBR q82, Quality 96
Bitrate......: 165 kbps 
Channels.....: 44100 khz / 2
Tags.........: MP4	
Size.........: 91.13 MB

01. Orgasm Addict 02:03
02. What Do I Get? 02:56
03. I Don't Mind 02:20
04. Love You More 01:51
05. Ever Fallen In Love? 02:42
06. Promises 02:37
07. Everybody's Happy Nowadays 03:14
08. Harmony In My Head 03:09
09. You Say You Don't Love Me (Bonus track) 02:55
10. Are Everything (Bonus track) 03:59
11. Strange Thing (Bonus track) 04:10
12. Running Free (Bonus track) 03:15
13. What Ever Happened To? 02:15
14. Oh Shit! 01:38
15. Autonomy 03:46
16. Noise Annoys 02:53
17. Just Lust 03:02
18. Lipstick 02:40
19. Why Can't I Touch It? 06:38
20. Something's Gone Wrong Again 04:36
21. Raison D'etre (Bonus track) 03:35
22. Why She's The Girl From The Chainstore (Bonus track) 02:27
23. Airwaves Dream (Bonus track) 03:55
24. What Do You Know (Bonus track) 03:15

Total........: 01:15:51

```

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [November 16, 2021, 11:02pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/2 "2021-11-16T23:02:02Z")

</div>

Maybe you can find a hint in this topic:

> [@Help needed with nfo export please!](https://community.mp3tag.de/t/help-needed-with-nfo-export-please/42520/4):
>
> I'm not familiar with that book but it sure has a long title.slightly_smiling_face One day I might try and find this 1995 album by "Cap'n Jazz": Burritos, Inspiration Point, Fork Balloon Sports, Cards In The Spokes, Automatic Biographies, Kites, Kung Fu, Trophies, Banana Peels We've Slipped On, And Egg Shells We've Tippy Toed Over That will surely not be accommodated by this script, which seems to do what @giant wants. [Export NFO file (centered).mte](https://community.mp3tag.de/uploads/default/original/2X/e/e91c257bd90832ec117c1694d0e9246a49bb57a1.mte) (1.3 KB)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 17, 2021, 6:55am UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/3 "2021-11-17T06:55:51Z")

</div>

> [@Sham69](#):
>
> besides manually adding spaces. %artist% - %album% (%year%) what else do I do?

`$repeat( ,$div($sub(80,$len('%artist% - %album% (%year%)')),2))%artist% - %album% (%year%)`  
assuming a line width of 80 characters ... which I think is the basic problem: "centering" a text is a relative thing.  
If I see your example correctly, then the text "Buzzcocks - Singles Going Steady (1979)" is not really centered as the text in the line starting with "Encoder .." is much longer than the decorative lines with the equal characters - which line should be the master of line length?

> [@Sham69](#):
>
> how to add bold text and images if possible

An export is a plain text file - which could be enriched with special text coding.  
So, if you know how to get the display program to interpret special text bits as instruction to show something in bold type, then add this special text.  
The same applies more or less to pictures: you have to find out how the display program deals with pictures.  
If it stays at plain text, I do not see much chance. (This would be just like getting the Windows editor to show font formatting and embedded pcitures - which it does not).

---

<div class="post-metadata">

**Author:** ![Sham69](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@Sham69](https://community.mp3tag.de/u/Sham69)\
**Post date:** [November 17, 2021, 1:52pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/4 "2021-11-17T13:52:41Z")

</div>

I wanted the text in the middle of the decorative lines, but that's fine, I changed it. I realized the lines are off too, 15 to the right and 16 to the left. Regardless, thank you guys for showing me how to do it.

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [November 17, 2021, 1:55pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/5 "2021-11-17T13:55:51Z")

</div>

It would be great if you could let us see how you have solved it. 😇 😉

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/how-do-you-center-text-for-nfo/55139/6 "2026-02-09T12:29:31Z")

</div>


