Volksbank Kontoauszug Schriftarten

revision 450ac902d700c6c80904ddd0cfd9385aef702d26

raw

README.rst

Schriftarten:

  • RFont0
  • RFont1
  • RFont2,Bold
  • RFont3
  • RFont4
  • RFont5
  • RFont6

Problemursache

Poppler (Bibliothek) macht falsche Schriftersetzungen.

Im PDF steht haben Objekte vom Typ "FontDescriptor" Eigenschaften "/Flags". Dort steht drin, ob es eine "FixedPitch" (Monospaced) Schrift ist oder nicht:

9.8.2 Font Descriptor Flags

Table 123 – Font flags

Siehe https://web.archive.org/web/20210128014024/https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf

Wenn Bit 1 gesetzt ist, ist die Schrift Monospaced. Diese Info scheint Poppler nicht zu nutzen.

Beispiel (qpdf -decrypt -qdf 2021-90003.pdf -|less):

%% Original object ID: 22 0
24 0 obj
<<
  /Ascent 803
  /CapHeight 0
  /Descent -249
  /Flags 33
  /FontBBox [
    -6
    -249
    639
    803
  ]
  /FontName /RFont0
  /ItalicAngle 0
  /StemV 0
  /Type /FontDescriptor
>>
endobj

Vermutlicher Bug: https://gitlab.freedesktop.org/poppler/poppler/-/issues/387

Eigentlich werden fixed-width-Fonts schon besonders behandelt, seit 2012:

Substitutions:

$ pdffonts -subst 2021-90003.pdf
name                                 object ID substitute font                      substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
RFont0                                   12  0 DejaVu Sans                          /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
RFont1                                   13  0 DejaVu Sans                          /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
RFont2,Bold                              14  0 DejaVu Sans Bold                     /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
RFont3                                   15  0 DejaVu Sans                          /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
RFont4                                   19  0 DejaVu Sans                          /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf

Hinweise

Tools:

$ fc-cache -f -v
$ pdffonts -subst 2021-90003.pdf
$ fc-match Courier
raw

screenshot.png

screenshot.png

History