Working with text in GIMP can be a bit frustrating, but I’m here to help with a series of quick guides that take you through all the basics. This time around, we’re going to look at how to center any text in GIMP, both in the basic text alignment and the location of the text in your image.
Centering by Text Alignment
This one is actually pretty simple, as long as you’ve got your Tool Options panel visible in GIMP. As soon as you select the Text tool from the toolbox (it’s the large capital A icon or use the keyboard shortcut T), the Tool Options panel should update to show the relevant settings for use with the Text tool.
The key setting that you’re looking for is found in the Justify section, which offers four text alignment options: Left justified, Right justified, Centered, and Filled. Obviously, the Centered option will produce the desired result.
You can set this option before you begin to type and it will start out centered, unsurprisingly. If you’ve changed your mind and you want to center some text that has already been typed out, simply click and drag to select it using the Text tool. Selected characters will be outlined in yellow borders, as shown above, then just click the Centered option in the Justify setting.
Strictly speaking, only the Filled setting actually creates justified text (which refers to the process of dynamically adjusting letter and word spacing to fill each line completely from edge to edge as seamlessly as possible) but typographic accuracy isn’t one of GIMP’s strong points, unfortunately.
Centering by Image Alignment
Now that you’ve got your text centered relative to the available text area, it’s time to get it centered against your image as a whole. This exact process will actually work on any layer type, so it’s a handy thing to know about, but I’ll still with the same text layer for this example.
The only secret to image alignment is finding the Alignment tool, and it’s not much of a secret since it’s stacked below the Move tool in your toolbox. You can also access it using the keyboard shortcut Q, or by opening the Tools menu, selecting Transform Tools, and clicking Align.
The Align/Alignment tool is a bit confusing at first, but it’s simple enough once you get the hang of it. Once you’ve selected the tool, your cursor turns into a precision selector. Click on the image element you want to align, and GIMP will select the appropriate layer for you.
Once you’ve selected the element you want to adjust, it’s time to look more closely at the Tool Options panel, which gives us all of our Alignment options (see below).
Since we want to center our text within our image, we can leave the Relative to option at its current setting, but feel free to experiment with the different options, which can be very useful for centering text relative to another image element, such as an icon or logo.
The Align center of target button, which will center the text relative to the canvas
Then simply click the Align center of target button and you’re done! If you’re feeling adventurous, you can also select the Align middle of target button just below it, and you’ll get your selection vertically centered as well as horizontally (so fancy, lol).
That’s everything you need to know to center text in GIMP! As I mentioned earlier, you can use the second alignment technique to center anything you want in GIMP, not just text, so get out there and start crafting precision alignments!About Thomas Boldt