OpenSlides / OpenSlides/openslides-client
PDF Export Motion: issue with custom font
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 35
- Forks
- 52
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 52
Description
Describe the bug
If a custom regular font is used, the pdf export runs in an layout issue with listing of change recommandations/amendments. At an yet unclear point the listing breaks in the next line. See the example below.
PDF export with OS font:
PDF export with custom font:
How to Reproduce
- open a meeting
- create a motion with the linked text below.
- Create two amendments with the linked texts; A1 and A2.
- Create two change recommandations: One in line 10 and one in line 12.
- Mark checkbox "Show all changes" in motion. > Export the PDF. Listing should be fine
- open Files. Upload a custom font. set it as regular
- open motion again and repear steps of number 5. -> export should look like the second one above.
Motion text:
Jemand musste Josef K. verleumdet haben, denn ohne dass er etwas Böses getan hätte, wurde er eines Morgens verhaftet. »Wie ein Hund! « sagte er, es war, als sollte die Scham ihn überleben.
Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt. Und es war ihnen wie eine Bestätigung ihrer neuen Träume und guten Absichten, als am Ziele ihrer Fahrt die Tochter als erste sich erhob und ihren jungen Körper dehnte.
»Es ist ein eigentümlicher Apparat«, sagte der Offizier zu dem Forschungsreisenden und überblickte mit einem gewissermaßen bewundernden Blick den ihm doch wohlbekannten Apparat. Sie hätten noch ins Boot springen können, aber der Reisende hob ein schweres, geknotetes Tau vom Boden, drohte ihnen damit und hielt sie dadurch von dem Sprunge ab.
A1 to line 4-7:
<p style="text-align: left">Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt. Und es war ihnen wie eine Bestätigung ihrer neuen Träume und guten Absichten, als am Ziele ihrer Fahrt die Tochter als erste sich erhob und ihren jungen Körper dehnte. Hier steht mehr Text.</p>
A2 to line 8 - 10:
<p style="text-align: left">»Es ist ein eigentümlicher Apparat«, sagte der Offizier und überblickte mit einem gewissermaßen bewundernden Blick den ihm doch wohlbekannten Apparat. Sie hätten noch ins Boot springen können, aber der Reisende hob ein schweres, geknotetes Tau vom Boden, drohte ihnen damit und hielt sie dadurch von dem Sprunge ab.</p>
Custom font:
Please contact me or Emanuel for the custom font, if you need one.
Expected behavior
By using a custom font, the listing of amendments and change recommendations should not break the line infromation into the next line.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PDF export using the supplied motion, amendments, change recommendations, and a custom regular font, then compare it with the OS-font export. Trace the client-side PDF export flow and font handling; done means the amendment and change-recommendation listing preserves its line information with the custom font.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100