Adjust Horizontal Text Padding in OBS Studio
Adjusting the horizontal padding of a GDI+ text source in OBS Studio is essential for creating clean, professional-looking stream overlays. While OBS does not feature a direct “horizontal padding” slider in the text properties, you can easily achieve this spacing using three highly effective methods. This guide will walk you through using the Crop/Pad filter, enabling custom text extents, and applying manual spacing to get the exact layout you need.
Method 1: Use the Crop/Pad Filter (Recommended)
The most precise way to add horizontal padding to any source in OBS, including GDI+ text, is by applying an effect filter.
- In the Sources dock, right-click your GDI+ Text source and select Filters.
- Click the + (plus) icon in the bottom-left corner of the Filters window under Effect Filters.
- Select Crop/Pad from the list and click OK.
- To add padding (instead of cropping), enter negative
numbers in the Left and Right
input boxes (for example, entering
-20will add 20 pixels of blank space to that side). - Close the filters window to apply the changes.
Method 2: Enable Custom Text Extents
Custom text extents allow you to define a specific bounding box for your text, giving you control over how the text aligns within that defined area.
- Double-click your GDI+ Text source to open its Properties.
- Scroll down and check the box next to Use Custom Text Extents.
- Set the Width to a value larger than your actual text size.
- Use the Alignment dropdown (Left, Center, or Right) to position your text within the box. Choosing “Center” will automatically create equal horizontal padding on both sides of the text box.
Method 3: Manual Spacing
If you do not have a background color enabled on your text source and simply need quick spacing relative to other sources, you can use manual spacing.
- Open your GDI+ Text source properties.
- In the Text input box, press the spacebar at the beginning and end of your text string to create padding.
- Click OK to save.