Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos in doc/comment #883

Merged
merged 1 commit into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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