Export DXF to PDF with embed fonts
EPLAN Solution
10/24/2019 7:34 AM
|
---|
EPLAN Solution
10/24/2019 7:52 AM
|
---|
DXF file:
Exported PDF file:
Code:
Code: [csharp]
using System; |
Wout
11/3/2019 9:15 AM
|
---|
Hi,
It took me a couple of hours to dig into this problem and have concluded it's not a CadLib bug, but did find a way to export these Japanese characters. Can you please order a support ticket here?
- Wout
|
Wout
11/6/2019 11:07 PM
|
---|
Hi,
The text is using the DengXian font, and the text contains japanese/chinese characters. If the font is not installed, CadLib will use the Arial font, and the Arial font does not contain any japanese/chinese characters, so they won't be rendered.
If you install the Dengxian Font Pack, CadLib can find the font and will render the text correctly.
https://www.microsoft.com/en-us/download/details.aspx?id=49113
Note that somehow in GDI+ the text is rendered correctly using the Arial font, but this seems to be an implementation detail where Microsoft will find the preferred chinese/japanese font installed on the system, and it will use that. I can't really find definite/detailed information on how the GDI+ font fall backs are implemented by Microsoft.
- Wout
|
EPLAN Solution
11/11/2019 8:51 AM
|
---|
Wout
11/11/2019 9:00 AM
|
---|
I tested this on Windows 7, I'll have a look at it again on Windows 10 then.
- Wout
|
Wout
11/11/2019 1:02 PM
|
---|
I've tried finding the font on Windows 10, and in theory it should be part of the Simplified Chinese language, which can be added under Windows 10 settings -> Language -> Chinese (Simplified, China) (according to this and this), but on my system that does not add the DengXian fonts (you can check that by looking in C:\Windows\Fonts).
The aforementioned language pack does not install on Windows 10, but it only fails to install because of the Windows version check, not because it actually found the DengXian font.
So, it's probably not very helpful for you, but technically I don't see how it's a CadLib problem. When the font is present on the system, the pdf output will be fine.
- Wout
|
EPLAN Solution
11/12/2019 8:02 AM
|
---|
And can you tell me, why exporting to DXF using CadLib is without any errors, but export this DXF to PDF cause this problem?
|
Wout
11/12/2019 9:01 AM
|
---|
Export to DXF doesn't render anything, you can specify non-existent fonts and the DXF will still be valid.
|
EPLAN Solution
11/12/2019 10:22 AM
|
---|
Thank you for your help. Problem was solved. :D In our company computers are not installed whole font set. We have installed only DengXian Regular. After installing missing fonts DengXian Bold and DengXian Light is everything allright.
|