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

some fonts are not justified #299

Closed
kitty801 opened this issue Apr 26, 2021 · 2 comments
Closed

some fonts are not justified #299

kitty801 opened this issue Apr 26, 2021 · 2 comments

Comments

@kitty801
Copy link

kitty801 commented Apr 26, 2021

I have simple html code


<FONT SIZE = 5>
<p style="font-family:calibri" align="justify">long long long simple text...</p>
</FONT>

In ThtmlViewer some fonts are justified (ex. Arial), but other are not (ex. Calibri)
Why?
Is it a font issue or HTMLViewer?

@BerndGabriel
Copy link
Owner

299.html.txt

BerndGabriel added a commit that referenced this issue Jan 29, 2023
- Cause: Some windows fonts do not define the Space character to use to insert additional pixels to justify the text.
- Fixed: TSection.Draw1.DrawTheText() justifies on its own now.
@BerndGabriel
Copy link
Owner

Thanks for spotting this issue.

Commit 21688fa fixes this issue in branch master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants