Chinese characters within a powerpoint document when converted show as square box while other charaacters (e.g. Korean, Japanese, English & etc) will be rendered properly. Please try the attached file. This is with the latest Aspose Slides library jar file.
Chinese characters within a powerpoint document when converted show as square box while other charaacters (e.g. Korean, Japanese, English & etc) will be rendered properly
Hi Ung,
Mudassir,
Hi Ung,
I like to share that Aspose.Slides renders with Arial font by default if used font is unavailable in environment that you are using. We also offer to set the default rendering font as well but you must ensure that selected font is available in your environment.
LoadOptions lo=new LoadOptions();
lo.setDefaultRegularFont(“name”);
lo.setDefaultAsianFont(“nmae”);
PresentationEx pres=new PresentationEx(presName,lo);
pres.save(“new.pdf”,SaveFormat.Pdf);
Please share, if I may help you further in this regard.
Many Thanks,
Mudassir,
Hi Ung,
I have observed the requirements shared by you and regret to share that at present the support for Monotype fonts is unavailable in Aspose.Slides for .NET and Java. For this reason, you are unable to use them in your application using Aspose.Slides for Java. An issue with ID SLIDESJAVA-33955 has been created in our issue tracking system to provide the support for requested fonts type. This thread has been linked with the issue so that you may be automatically notified once the requested support will be available.
Many Thanks,
When you say support for Monotype fonts is unavailable in Aspose.Slides, I’m assuming you meant the Monotype Asian Font support?
Hi Ung,
- CSongL18030_C.ttf
- MSungM18030_C.ttf
Mudassir,The code used was only with the asian font setting as below:
FontsLoader.loadExternalFonts(new String[]{getFontPath()});
LoadOptions loadOptions = new LoadOptions();
loadOptions.setDefaultAsianFont("MSungM18030_C.ttf");
Presentation pres = new Presentation(uploadedFile, loadOptions);
...then save .
This does not work. Have attached the files. Let me know if you could get it working.
Thanks
ung
Hi Ung,
Thanks for sharing the details with us. Can you please share the generated PDF and also the expected output PDF with us so that I may add ticket in our issue tracking system for investigation.
Many Thanks,
I noticed that you already have opened an issue related to this SLIDESJAVA-33955. If you do open another issue do let me know the issue ID.
I have attached the converted png, having said that, the aspose.slides libs are used just for slide to image(jpg/png) conversion and not to PDF.
We would also be using many other Asian fonts. Could you let us know which of these fonts are going to be supported by ASPOSE and if the same asian fonts would be supported by the othe libraries like (cells, word and pdf)
Here is the list of Monotype Asian Fonts:
Chinese:
1. CSongL18030_C.ttf
2. MSungHK-Light.ttf
3. MSungM18030_C.ttf
Traditional Chinese:
1. MSungHK-Light.ttf
Japanese:
1. HeiseiMinchoW3_JIS0213_C.ttf
2. MTXm3kp.ttf
Korean:
1. FBBlueMingL.ttf
2. H2MJRL.TTF
Thanks
ung
Hi Ung,
Thanks for sharing the information with us. I like to share that SLIDESJAVA-33955 has been created for Monotype’s TrueType fonts that are not supported by Aspose.Slides. For that, we need the fonts that you have specified in your last post on our end to verify and test. So far, you have have only shared the following two fonts with us. However, in list you have shared some new fonts as well.
- CSongL18030_C.ttf
- MSungM18030_C.ttf
As I requested with you in my last post that what is the expected output you want from Aspose.Slides to generate in response to the sample shared by you in this post. I have tried a new Windows 7 Operating System with JDK 1.7 that does not have SimSun fonts installed and I used the sample code shared in your post to generate the PDF. The PDF looked similar to that of presentation. Unfortunately, I am unable to reproduce the issue on my end. Therefore, I requested you to please share the expected PDF file that you want to generate by replacing a font in rendered PDF. Please note that setting the default font does not mean that it will replace the font for every text but it will set the fonts for the text for which font is missing.
Please share the operating system and java details with us. Please also try installing the SimSun fonts on your end if possible as the image shared by you is clearly a missing font issue. If you ought to use CSongL18030_C.ttf or MSungM18030_C.ttf fonts as default replacing fonts then please first try to install these fonts on your end and then try setting the default font.
More importantly, as requested earlier, please share the expected PDF file with us that you want to generate as a result of font substitution so that we may observe it on our end and help you further in this regard.
Many Thanks,
Mudassir,
I'm not sure if I would be able to share the fonts, I need to check with the font supplier as we are still trying out these Asian fonts. However we do have the regular Monotype true type fonts installed and actively use them for the document (.ppt, xsl, .doc and .pdf) to image (jpg/png) conversions and they work fine. We are trying to see if this can use the Monotype asian fonts for similar conversion.
PLEASE NOTE: We do not use Microsoft fonts and do not intend to.We are only interested in ppt to jpg/png conversion and not to PDF. I have also provided you the original document that was used for conversion, as well as the converted image. You should be able to recreate the same on your end if you would like to convert it to any other format.
Once again, our interest is in converting the ppt document to an image and not to PDF and I do not have any converted PDF to share. I have shared the converted image already.
The environment is:
OS: Redhat Linux with Java: JDK/JRE 1.6.0_65
Thanks
ung
Hi Ung,
- CSongL18030_C.ttf
- MSungM18030_C.ttf
Mudassir,
Hi Ung,
Mudassir,
Hi Ung,
Mudassir,