[okular] [Bug 470128] Saving document with resized text creates huge memory footprint

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Jul 7 21:42:49 BST 2023


https://bugs.kde.org/show_bug.cgi?id=470128

--- Comment #6 from dorla.hutch at gmail.com ---
(In reply to Sune Vuorela from comment #4)
> (In reply to dorla.hutch from comment #3)
> > (In reply to dorla.hutch from comment #2)
> > > From initially 23KiB, it went to 20MiB (at least
> > > not 100MiB) …
> > 
> > After adding the comment box before scaling, it's already 918KiB to be
> > honest but after scaling, it becomes 20MiB.
> 
> adding ~900kb is kind of expected [...]
> 
> But for some reason, though I didn't manage to succeed myself, your file
> also contains a 20mb noto sans CJK HK file, so unless you explicitly have
> specified it, [...]
> 
> What are your exact steps to resize the text ?

I am sorry for my late response. I only resize the text in the single way I
know. It affects multiple annotations, not just inline notes but also text. I
open the text properties widget (using the Browse mode -> right click ->
properties) and choose another font size, nothing else. The problem is, no
matter what I do, it will not shrink to the previous size, even if I undo the
resizing of text (choosing normal font size) and save again. I would need to
redownload the original, especially if the annotated PDF is supposed to be
uploaded somewhere or to an email. Redownloading makes me lose all annotations
I had.

Now, I tested it and the problem does not occur 😃 ! When resizing a text box
with Cantarell font from 11 to 20, it will save quickly and there is no unusual
footprint.

I think the problem is, that Okular on Ubuntu 20.04 only lists (shows)
CJK-versions for any Noto Sans font so if Noto Sans is used, it will grow huge
upon changing font properties. It probably changes the font to Noto Sans CJK
xx.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list