Hi,

Yes it is usable rather with non-subset fonts. Whether is font subset or
not can be detected. Also should be possible to check which characters are
in subset for example from weights (at worst from embedded font file).

One use case of this is to fill existing acroforms and construct appearance
streams. It looks better and more uniform across viewers than to use
"NeedAppearances". It would not be very reasonable to use subset font for
editable text fields.

Also StringWidth function will probably not work due to this bug. Lets say
you want to extend podofo text extraction utility to print also bounding
box of text element in addition to position. You will get wrong string
widths and bounding boxes due to this bug. This use case is reasonable also
for subset fonts.

All bug reports which I sent are based on some real use case.

This is bug and should be fixed. There is function which lazily initialises
data structure which it uses and another function which does not. It can be
fixed also by lazy initialisation in that other functions. I just proposed
fix which I supposed is better and simpler option.

On Sat, Dec 8, 2018 at 7:13 AM zyx <z...@gmx.us> wrote:

> On Mon, 2018-12-03 at 23:06 +0100, Michal Sudolsky wrote:
> > The best is to initialise it during creation of
> > PdfDifferenceEncoding. And only place which creates
> > PdfDifferenceEncoding is "PdfFont* PdfMemDocument::GetFont(
> > PdfObject* pObject )".
>
>         Hi,
> this would not help with subset fonts, because they do not contain all
> the characters of the original font, right? I'm wondering how much
> sense that would make to reuse partial font of the existing file. I
> mean, there are situations where it does make sense, but also those
> where not. It might be up to the library user to decide, while there is
> not much way to give a hint to the user when it makes (or rather does
> not make) sense to do it. Or am I missing anything here?
>         Bye,
>         zyx
>
>
>
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to