[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2022-03-21 Thread Mikael
https://bugs.kde.org/show_bug.cgi?id=325119

Mikael  changed:

   What|Removed |Added

 CC||mik...@openstudio.se

--- Comment #11 from Mikael  ---
This is still an issue.
The text box around Inline note elements still seems to have very big right and
bottom margins in Okular.
But when text elements (both Inline note and Typewriter annotations) created in
Okular are opened in another PDF reader, such as Acrobat reader or pdf.online
web-app, then the text element containing box actually becomes too small
instead:
The font face, size and color are substituted with another (standard/default)
font face/size/color in other PDF readers. This font face requires more space
compared to the font face used in Okular, but text element containing boxes
does not get bigger and as a result text from Okular is cropped. Unless the
font size for annotations is set to 12 (in contrast to default 9) in Okular
this cropping happens frequently for text elements with several words or
several lines of text.
With this issue in mind it might actually be more important (to guarantee basic
functionality) to increase the padding around text elements, rather than making
the padding smaller (with better looks in mind).

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2021-12-20 Thread Oliver Freyermuth
https://bugs.kde.org/show_bug.cgi?id=325119

Oliver Freyermuth  changed:

   What|Removed |Added

 CC||o.freyerm...@googlemail.com

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2018-05-10 Thread Tobias Deiminger
https://bugs.kde.org/show_bug.cgi?id=325119

--- Comment #10 from Tobias Deiminger  ---
(In reply to Chris from comment #9)
> There is also a Poppler bug concerning fonts in annotations which might be
> related to the present matter:
> https://bugs.freedesktop.org/show_bug.cgi?id=65956#c14
> 
> Apparently the font configured to be used in the annotation is ignored in
> general. Maybe this should be fixed and the rest might work then?
> 
There's one more dedicated poppler bug "FreeText annotation ignores font":
https://bugs.freedesktop.org/show_bug.cgi?id=81748
Hopefully we can fix it during GSoC 18, or in some follow up patches.

> Another point is I agree with comment saying that the shape and size of the
> bounding box cannot be reasonably be fixed in advance ("drawn boundaries")
> .
Would you agree with Simone in comment 7?
> default behavior of an inline note should be to resize the rectangle
> in order to show all the text and allow the user to resize it down
Because that's what we try atm, even for a "drawn boundary". It just doesn't
work 100% perfect because of more subtle problems (font ignored, different
rendering engines at work).

> I think it should be marked as duplicate of the above Poppler bug; and as
> for the "drawn boundaries", a wishlist bug should be opened where the
> intended behavior of the "drawn box" could be discussed.
Poppler is hosted by freedesktop, Okular is hosted by KDE. We can't mark
duplicates between different projects on different hosts, can we? But giving a
link in each place is always good.

> Also, since applications 17.08, it is very easy to reshape the box after the
> text is entered.
Glad if it's useful:)

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2018-04-30 Thread Dileep Sankhla
https://bugs.kde.org/show_bug.cgi?id=325119

Dileep Sankhla  changed:

   What|Removed |Added

 CC||sankhla.dilee...@gmail.com

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2018-04-25 Thread Chris
https://bugs.kde.org/show_bug.cgi?id=325119

Chris  changed:

   What|Removed |Added

 CC||inkbottle...@gmail.com

--- Comment #9 from Chris  ---
There is also a Poppler bug concerning fonts in annotations which might be
related to the present matter:
https://bugs.freedesktop.org/show_bug.cgi?id=65956#c14

Apparently the font configured to be used in the annotation is ignored in
general. Maybe this should be fixed and the rest might work then?


Another point is I agree with comment saying that the shape and size of the
bounding box cannot be reasonably be fixed in advance ("drawn boundaries")
.

I think it should be marked as duplicate of the above Poppler bug; and as for
the "drawn boundaries", a wishlist bug should be opened where the intended
behavior of the "drawn box" could be discussed.

Also, since applications 17.08, it is very easy to reshape the box after the
text is entered.

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2018-04-12 Thread Tobias Deiminger
https://bugs.kde.org/show_bug.cgi?id=325119

Tobias Deiminger  changed:

   What|Removed |Added

 CC||haxti...@posteo.de

--- Comment #8 from Tobias Deiminger  ---
At least one cause for the misfit is this: Okular doesn't consult
generator/poppler for required size when it calculates the desired bounding box
of annotations. Actually it can't, because Poppler has no such API yet. Instead
Okular tries to guess the size of the bounding box on its own by using
QFontMetricsF::boundingRect [0].

Only the annotation rendering engine (i.e. Poppler) could know the exact size.
E.g. it's not even guaranteed that QFontMetricsF and Poppler actually select
the same font (may or may not use lib fontconfig to search fonts, afaikt) even
if description matches. A QT-based guess can always be more or less wrong.

[0]
https://cgit.kde.org/okular.git/tree/ui/pageviewannotator.cpp?h=Applications/18.04#n199

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2018-04-06 Thread Simon Andric
https://bugs.kde.org/show_bug.cgi?id=325119

Simon Andric  changed:

   What|Removed |Added

 CC||simonandr...@gmail.com

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2017-07-23 Thread Simone Gaiarin
https://bugs.kde.org/show_bug.cgi?id=325119

Simone Gaiarin  changed:

   What|Removed |Added

 CC||simg...@gmail.com

--- Comment #7 from Simone Gaiarin  ---
With Okular 1.1 this bug seems partially solved because:
- if the inline note rectangle is too small, it is resized in order to fit all
the text without hiding it
- The inline note is now resizable

Still not solved:
- Too much white space added in the rectangle under the text

Regarding the inline note rectangle behavior.
In my opinion, the default behavior of an inline note should be to resize the
rectangle in order to show all the text and allow the user to resize it down,
possibly hiding some text, in as second moment (as it is now). If one has to
write a lot of text the logical correct tool seems the popup note.

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

[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2016-09-20 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=325119

--- Comment #6 from dannycoli...@gmail.com ---
Any progress?

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


[okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2016-09-20 Thread via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=325119

dannycoli...@gmail.com changed:

   What|Removed |Added

 CC||dannycoli...@gmail.com

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


[Okular-devel] [okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2014-10-10 Thread Florian
https://bugs.kde.org/show_bug.cgi?id=325119

Florian floesc...@gmx.net changed:

   What|Removed |Added

 CC||floesc...@gmx.net

--- Comment #4 from Florian floesc...@gmx.net ---
Similar problem here, except that text is cut off instead of too much space
shown. I would expect the following:

1) Try to fit the boundary box to the text - dont use more or less space
2) Let user resize the boundary box, e. g. by pushing Shift+Ctrl and the left
mouse (similar to moving it)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2014-10-10 Thread Florian
https://bugs.kde.org/show_bug.cgi?id=325119

--- Comment #5 from Florian floesc...@gmx.net ---
Created attachment 89076
  -- https://bugs.kde.org/attachment.cgi?id=89076action=edit
Animated gif which shows the original input and the boundary box afterwards

I quickly created an animated gif which shows the original input and the
boundary box afterwards. Hope this helps!

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2014-05-08 Thread Luigi Toscano
https://bugs.kde.org/show_bug.cgi?id=325119

Luigi Toscano luigi.tosc...@tiscali.it changed:

   What|Removed |Added

 Status|UNCONFIRMED |CONFIRMED
 CC||luigi.tosc...@tiscali.it
Version|0.17.1  |0.19.60
 Ever confirmed|0   |1

--- Comment #3 from Luigi Toscano luigi.tosc...@tiscali.it ---
Confirmed on Okular 0.19.60

(In reply to comment #0)
 Expected Results:  
 The rectangular area drawn by the user should be respected and/or the
 rectangle shape should fit the text and be calculated based on font size and
 area drawn by the user.

So, for sure the boundary box should be more fit with the real text (with no
blank areas around as it happens right now), but  what do you expect it would
make more sense when the text? Let the shape to be fixed, so truncate the text
which does not fit (respecting the choice of the font), or increase the shape
anyway (provided that the area fits the text perfectly and that can be
resized)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2014-04-08 Thread Quest
https://bugs.kde.org/show_bug.cgi?id=325119

Quest quest...@o2.pl changed:

   What|Removed |Added

 CC||quest...@o2.pl

--- Comment #2 from Quest quest...@o2.pl ---
Hey

I would like refresh this bugreport. The text in inline annotation should set
framer border at least. Or frame should has variable size.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] [okular] [Bug 325119] Size of inline notes not adjusted to font size and does not respect drawn boundaries

2013-09-20 Thread Michael
https://bugs.kde.org/show_bug.cgi?id=325119

--- Comment #1 from Michael michael@gmail.com ---
Created attachment 82422
  -- https://bugs.kde.org/attachment.cgi?id=82422action=edit
Example of the described problem

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel