Skip to content

Commit

Permalink
fix typos in doc/comment (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcstober authored Aug 13, 2023
1 parent f25f916 commit 398a2ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/TextShaping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 398a2ac

Please sign in to comment.