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

docs!: add notes on thai font where accent chars collapse #460

Merged
merged 3 commits into from
Jun 24, 2022

Conversation

hackinteach
Copy link

As discussed in #459 , I have added notes on Thai accent characters.

docs/Unicode.md Outdated
@@ -42,6 +42,18 @@ more information.
Then, to use a Unicode font in your script, pass `True` as the fourth parameter
of [`add_font`](fpdf/fpdf.html#fpdf.fpdf.FPDF.add_font).

**Notes on Thai Fonts**
Copy link
Collaborator

@gmischler gmischler Jun 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the issue is not specific to Thai fonts, but applies to text in any non-lating writing system.
So maybe this could be phrased in a more general way? Using Thai as an example is of course ok.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, i just pushed the more general version. Not sure if that is ok. Let me know if there's still room for improvement. I'm not quite familiar with font and unicode thing but will do my best :)

@Lucas-C
Copy link
Member

Lucas-C commented Jun 23, 2022

Looks great to me, thank you @hackinteach for submitting this!

I'm going to wait for @gmischler review on the latest version before merging this 😊

@Lucas-C
Copy link
Member

Lucas-C commented Jun 23, 2022

@all-contributors please add @hackinteach for documentation

@allcontributors
Copy link

@Lucas-C

I've put up a pull request to add @hackinteach! 🎉

@codecov
Copy link

codecov bot commented Jun 23, 2022

Codecov Report

Merging #460 (06487db) into master (9c63f4e) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #460      +/-   ##
==========================================
- Coverage   92.11%   91.96%   -0.16%     
==========================================
  Files          22       22              
  Lines        6521     6398     -123     
  Branches     1329     1297      -32     
==========================================
- Hits         6007     5884     -123     
  Misses        293      293              
  Partials      221      221              
Impacted Files Coverage Δ
fpdf/prefs.py 90.90% <0.00%> (-1.95%) ⬇️
fpdf/drawing.py 92.98% <0.00%> (-0.27%) ⬇️
fpdf/fpdf.py 89.96% <0.00%> (-0.01%) ⬇️
fpdf/enums.py 100.00% <0.00%> (ø)
fpdf/__init__.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c63f4e...06487db. Read the comment docs.

docs/Unicode.md Outdated Show resolved Hide resolved
@gmischler
Copy link
Collaborator

There's one sentence that could be phrased a bit more clearly. Other than that, a good summary of the issue and the solution!

@Lucas-C
Copy link
Member

Lucas-C commented Jun 24, 2022

Merging this now.
Thank you both @gmischler & @hackinteach!

@Lucas-C Lucas-C merged commit 48f8379 into py-pdf:master Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants