<div dir="auto">Hey Andy,<div dir="auto">I am already working on this. Will try to raise an MR for this by this or next weekend. If you'd still like to take this up, I can share my progress with you.</div><div dir="auto">The same issue exists with combo box, list box, etc. Not sure, but some change could be required on poppler end as well. </div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Pratham</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Jul, 2024, 1:05 pm Andy Sardina, <<a href="mailto:andysardina22@gmail.com" target="_blank" rel="noreferrer">andysardina22@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Cool! </div><div dir="auto"><br></div><div dir="auto">I’ll work on a PR and avoid sharing pointers between the two levels. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Jul 2024 at 1:11 AM Albert Astals Cid <<a href="mailto:aacid@kde.org" rel="noreferrer noreferrer" target="_blank">aacid@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El dimarts, 23 de juliol del 2024, a les 12:46:59 (CEST), Andy Sardina va <br>
escriure:<br>
> Hi,<br>
> <br>
> I have used Okular recently to fill a PDF form and I haven't found a way<br>
> (in the UI) to adjust the font size for text fields. This is a problem<br>
> because for some text fields, specially the ones where one has to write an<br>
> address, even if the text fits perfectly in the Okular::FormLineEdit, when<br>
> it gets rendered, the text could be cut.<br>
> <br>
> For example:<br>
> <br>
> [image: form-show.png]<br>
> <br>
> but when the form is hidden:<br>
> <br>
> [image: form-hidden.png]<br>
> <br>
> The problem seems to be that the font (and font size) for the<br>
> Okular::FormLineEdit is different from the one in the Default Appearance<br>
> (DA) in the PDF.<br>
> <br>
> My proposal is to take advantage of the method<br>
> Poppler::FormFieldText::setTextFontSize to adjust the font size in<br>
> the PopplerFormFieldText (Poppler Generator).<br>
> <br>
> Ideally, Poppler::FormFieldText could have a member function that returns a<br>
> pointer (to avoid duplicating the same object if many text files share the<br>
> same font) to<br>
> the font defined in the DA (implies changes in Poppler itself). This font<br>
> can then be used on the constructor of Okular::FormLineEdit to "sync" both<br>
> fonts.<br>
> <br>
> What do you think? Is this a change that could be accepted?<br>
<br>
Setting the font & font size is possibly a valid feature, we do that already <br>
for annotations so i don't see why we would not do it for Forms.<br>
<br>
What you suggest of sharing pointers between poppler and okular, that's <br>
possibly a bad idea.<br>
<br>
Cheers,<br>
Albert<br>
<br>
<br>
</blockquote></div></div>
</blockquote></div>