I am using Noto fonts to create pdf and looking embedding of a font vs not embedding them. My code
FontFactory.register("c:/temp/fonts/NotoSansCJKsc-Regular.otf", "my_nato_font");
Font myBoldFont = FontFactory.getFont("my_nato_font", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
When I create the pdf and do a CTRL + D, I can see that the fonts have been embedded.
However once I go with option
FontFactory.register("c:/temp/fonts/NotoSansCJKsc-Regular.otf", "my_nato_font");
Font myBoldFont = FontFactory.getFont("my_nato_font");
The size of file is reduced and the fonts are not embedded. Now I cannot see the Chinese characters which I have added to the pdf.
My questions
- Why does NOT_EMBED option still embed the font ?
- Since Noto fonts are open sourced by google and supported by adobe Introducing Source Hans , I would assume that end user should be able to view the documents even with out the need to embed them. Is my understanding wrong ?