Repository navigation
Change text paint order to stroke-fill - #3013
Closed
Enter-tainer wants to merge 3 commits into
Closed
Enter-tainer wants to merge 3 commits into
Enter-tainer wants to merge 3 commits into
Conversation
Enter-tainer
commented
Dec 19, 2023
Contributor
|
I feel like rendering it glyph-by-glyph might be an issue with some of the PDF/A limitations (maybe, not too sure): #2942 |
Enter-tainer
force-pushed
the
mgt/text-stroke-paint-order
branch
from
December 20, 2023 15:18
7d71b97 to
2786cc6
Compare
Collaborator
Surely the goal is to have a PDF/A-compliant mode, not that all typst documents should necessarily be PDF/A compliant? |
Member
|
Rendering the text twice might also result in problems with copy paste and accessibility. |
Contributor
Author
|
agree. we may see how users react to the current behavior and decide whether to merge this |
laurmaedje
marked this pull request as draft
January 5, 2024 08:42
Member
|
I'll close this for now. If we think this is useful down the road, we can reopen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem remains:
copy paste code in pdf exportFixedThe paint order in pdf is Stroke(Lorem), Fill(Lorem) ... But for svg and png it is Stroke(L), Fill(L), Stroke(o), Fill(o) ...
So they may look different when the stroke is very large.
To solve this we need either: paint pdf text glyph by glyph, or render twice for png and svg. I feel like neither one is not worth it. Maybe keep current behavior is good enough.