Re: Strategy for dealing with non-latin characters in base font

2018-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tilman, On 3/10/18 6:26 AM, Tilman Hausherr wrote: > Am 09.03.2018 um 21:57 schrieb Tilman Hausherr: >> You can subset fonts by using PDType0Font.load(), this limits >> memory usage. > > I meant "file size". > > Also important: try to use each

Re: Strategy for dealing with non-latin characters in base font

2018-03-10 Thread Tilman Hausherr
Am 09.03.2018 um 21:57 schrieb Tilman Hausherr: You can subset fonts by using PDType0Font.load(), this limits memory usage. I meant "file size". Also important: try to use each font only once per file. You can reuse fonts and images within a file. See also

Re: Strategy for dealing with non-latin characters in base font

2018-03-09 Thread Tilman Hausherr
You can subset fonts by using PDType0Font.load(), this limits memory usage. You could do that for any characters that are not in the WinAnsiEncoding. To find out whether a character is in a font, you can call encode() and catch the exception. There is no way to "add a single glyph" without