diff --git a/docs/TextShaping.md b/docs/TextShaping.md index b49de7512..3cfe29921 100644 --- a/docs/TextShaping.md +++ b/docs/TextShaping.md @@ -46,7 +46,7 @@ pip install uharfbuzz ⚠️ Text shaping is *not* available for type 1 fonts. ### Basic usage ### -The method `set_text_shaping()` is used to control text shaping on a document. The only mandatory argument, `use_shaping_engine` can be set to `True` to enable the shaping mechaning or `False` to disable it. +The method `set_text_shaping()` is used to control text shaping on a document. The only mandatory argument, `use_shaping_engine` can be set to `True` to enable the shaping mechanism or `False` to disable it. ```python pdf = FPDF() diff --git a/fpdf/fpdf.py b/fpdf/fpdf.py index 39d813194..c90916fd5 100644 --- a/fpdf/fpdf.py +++ b/fpdf/fpdf.py @@ -623,7 +623,7 @@ def set_text_shaping( # Buffer properties (direction, script and language) # if the properties are not provided, Harfbuzz "guessing" logic is used. # https://harfbuzz.github.io/setting-buffer-properties.html - # Valid harfbuzz directions are lrt (left to right), rtl (right to left), + # Valid harfbuzz directions are ltr (left to right), rtl (right to left), # ttb (top to bottom) or btt (bottom to top) if direction and direction not in ("ltr", "rtl"):