FiFont
← Typography reference

Typography reference

Text direction and alignment

Text direction affects inline layout and the Unicode bidirectional algorithm. Right alignment alone does not change the paragraph's directional base.

Try the visual comparison

The same mixed Latin, numeric and Arabic content uses different base direction and start alignment. The Unicode bidi algorithm affects the displayed order, while the source string is unchanged.

Example A

FiFont 123 العربية
direction:ltr;
text-align:start;

Example B

FiFont 123 العربية
direction:rtl;
text-align:start;

These examples use browser/system fonts unless explicitly noted. Actual rendering and font feature support vary with your environment.

What to check in your project

Use semantic dir and appropriate lang metadata on real content. Test a price, punctuation, a mixed-script link and keyboard selection; right alignment alone does not set paragraph direction.

Explore the related tool or guide →

Continue exploring