Bug 7256

Packaging custom fonts does not work with native pdf 18 October, 2021

mike S
15 September, 2021
Product: PowerBuilder Category: DataWindow
Version: 2019 R3 Build: 2703
Classification: Publishing: Public
Priority: P3
Status: Analyzing Reason:
Communication Status: Waiting for Customer
Chris Pollach @Appeon 18 October, 2021
#2
Hi Mike,

    Were you able to resolve this issue or create a simple test case?

Regards... Chris
Chris Pollach @Appeon 15 September, 2021
#1
Hi Mike,

    It would really help us to diagnose this issue if you could provide a reproducible test case. Please provide a reproducible sample test case (with PBT/PBL + font library) for us to reproduce and analyze the issue.

Also, could you please let us know 
1. What operating system build that you are using? 
2. Which language default is set to on your computer? 
3. What is the Region set on your PC, and which Regional Format is it using?

Many thanks in advance.

Regards... Chris
mike S 15 September, 2021
*Phenomenon:
custom font is not being embedded in the PDF from the native pdf.


*Reproduce Steps:
Packaging custom fonts is set to yes in application object.

using a barcode font, a datawindow report has the barcode and data on it.  do a save to pdf and the PDF does NOT have the barcode font embedded.  It does on the displayed datawindow and printed datawindow.

Remarks:
the font is being loaded at runtime as needed as a private font for my application as per best practices and licensing requirements:

see AddFontResourceExW :
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-addfontresourceexw

native pdf does not seem to see this?  Is there something else that should be done to allow native pdf to access the font?  Isn't the native pdf is in the same process as the PB application and thus has access to the font?
OS:
Windows 10
Platform:
32-bit
Database Type:
Microsoft SQL Server
Database Version: