font-embedding

PdfBox embed fonts into existing document

血红的双手。 提交于 2021-02-10 06:14:50
问题 I have a pdf file which shows font properties in Okular (or whatever PDF viewer) like that: Name: Helvetica Type: Type1 File: /usr/share/fonts/truetype/liberation2/LiberationSans-regular.ttf Embedded: No I want to embed Helvetica with PDFBox 2xx without modifying file content (text) itself so it would always available with a file. Is it possible at all? I tried something like: PDDocument document = PDDocument.load(myFile); InputStream stream = new FileInputStream(new File("/home/user/fonts

Reducing file sizes of PDFs created using matplotlib by changing font embedding

不羁的心 提交于 2021-02-04 19:42:26
问题 I'm using matplotlib to produce PDF figures. However, even the simplest figures produce relatively large files, the MWE below produces a file of almost 1 MB. I've become aware that the large file size is due to matplotlib fully embedding all the used fonts. Since I'm going to produce quite a few plots and would like to reduce the file sizes, I'm wondering: Main question: Is there a way to get matplotlib to embed font subsets instead of the complete fonts? I would also be fine with not

Embedded fonts in RTF

亡梦爱人 提交于 2019-12-11 16:51:58
问题 According to the rtf specs, we can embed a font in an rtf file using the \fontemb and \fontfile control words. Can someone give me a working example of that? I'd like the rtf file to use the font that's located in a separate file (i.e. .ttf file) 回答1: You should use TTEmbedFont function to create embedded font data. http://msdn.microsoft.com/en-us/library/windows/desktop/dd145145(v=vs.85).aspx Like this. //WRITEEMBEDPROC unsigned long WriteEmbedProc(void *lpvWriteStream, const void *lpvBuffer

How to check Fully embedded and subset embedded font using PDFBOX

你。 提交于 2019-12-11 08:51:30
问题 Hi I want to check fully embedding and subset embedding of fonts in PDF using PDFBOX. I have tried using the following logic to check: private boolean IsEmbedded(Map<String, PDFont> fontsMap, Set<String> keys) { for(String key:keys) { PDFont font = fontsMap.get(key); PDFontDescriptor fontDescriptor = font.getFontDescriptor(); if(null != fontDescriptor && fontDescriptor instanceof PDFontDescriptorDictionary){ PDFontDescriptorDictionary fontDescriptorDictionary = (PDFontDescriptorDictionary

Adobe Air - Textfield with Chinese characters

醉酒当歌 提交于 2019-12-11 04:33:52
问题 I've a contact form that needs to support Chinese characters. Right now if I enter Chinese text nothing shows up. (Not even the empty box placeholder) How to handle Chinese characters in an Adobe Air dynamic textfield? Thanks. Uli 回答1: Can' you just embed the font you are using to include the Chinese characters you need? 回答2: Ok thats a few years late... but just use "_sans" as font. If you develop for mobile, it will use the device fonts, which support everything, but look differently from

Why doesnt Acrobat Distiller embed all fonts fully?

自闭症网瘾萝莉.ら 提交于 2019-12-01 00:17:18
When I use Acrobat Distiller (v.9.1.3), it seems that I cannot embed all fonts -- at least not in the way I want to (no subsetting). One example is Wingdings (TrueType). I activated the tickboxes and settings to "Always embed" and "No subsetting" . If I check in a text editor the *.joboptions file that I saved as my custom Distiller profile it clearly says: /EmbedAllFonts true /EmbedOpenType true /MaxSubsetPct 1 /SubsetFonts false Some fonts Distiller does embed fully (as requested by me), others not. If I change the setting to do font subsetting, this works with all fonts. Therefore I think

Does one need to have a license for fonts if we are using ttf files in itext? [closed]

試著忘記壹切 提交于 2019-11-30 16:21:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I understand that itext does not come with any of the font libraries and you need to provide the font library . The pdf once generated, will be viewed by Acrobat and assuming , it is the standard fonts, adobe would have support for it. My questions is about licensing of the fonts. a) Do I need to have a license

Why doesnt Acrobat Distiller embed all fonts fully?

霸气de小男生 提交于 2019-11-29 22:47:29
问题 When I use Acrobat Distiller (v.9.1.3), it seems that I cannot embed all fonts -- at least not in the way I want to (no subsetting). One example is Wingdings (TrueType). I activated the tickboxes and settings to "Always embed" and "No subsetting" . If I check in a text editor the *.joboptions file that I saved as my custom Distiller profile it clearly says: /EmbedAllFonts true /EmbedOpenType true /MaxSubsetPct 1 /SubsetFonts false Some fonts Distiller does embed fully (as requested by me),

@font-face anti-aliasing on windows and mac

点点圈 提交于 2019-11-26 15:13:44
I've used http://www.fontsquirrel.com/ to create a @font-face kit. It works fine, but the result on windows is different from the result on mac. On windows the font seems to have a wrong anti-aliasing: this is the result on Mac with FF, Chrome or Safari (all updated to last version). this is the result on Windows with FF or Chrome. As you can see, the result is not the same. On Windows the font is thicker and rougher. How can I solve this? This just looks like the normal ugly way fonts are rendered in WinXP. Some (IMO: misguided) people even prefer it. To get anti-aliasing for desktop fonts in

@font-face anti-aliasing on windows and mac

允我心安 提交于 2019-11-26 08:52:52
问题 I\'ve used http://www.fontsquirrel.com/ to create a @font-face kit. It works fine, but the result on windows is different from the result on mac. On windows the font seems to have a wrong anti-aliasing: this is the result on Mac with FF, Chrome or Safari (all updated to last version). this is the result on Windows with FF or Chrome. As you can see, the result is not the same. On Windows the font is thicker and rougher. How can I solve this? 回答1: This just looks like the normal ugly way fonts