Details
-
Type:
Bug
-
Status: OPEN
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 12.0
-
Fix Version/s: None
-
Component/s: Site Info
-
Labels:None
-
11 status:Please Merge
Description
Context:
- The Sakai server does not have the DejaVu Sans font installed (free-license font type).
- This Sakai property is enabled: "pdf.default.font=DejaVu Sans".
1. Go to the "Site Info" tool from a site.
2. Click the "Printable Version" link to print the site participants list to PDF.
3. This error is logged:
org.apache.fop.fonts.substitute.FontSubstitutions - Unable to match font substitution for destination qualifier font-family
The problem is in this line:
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, streamOut);
in the method "SiteInfoToolServlet.generatePDF".
This issue was fixed by this Jira SAM-1674 in Samigo. This fix includes:
- Copy the "DejaVu Sans" font to the samigo resources.
- Register dynamically the directory where the font is.
So the solution to this issue would be the same:
- Copy the "DejaVu Sans" font to the "Site Info" resources.
- Register dynamically the directory where the font is.
A better fix could be:
- Copy the "DejaVu Sans" font to the Kernel resources.
- Register the directory where the font is.
This fix implies that the font would be available to all tools.
Gliffy Diagrams
Zeplin
Attachments
Issue Links
- is related to
-
SAK-21909 In site-manage tool, non-latin (Japanese/Chinese) characters are not supported while export site members in PDF file.
-
- OPEN
-