- État Fermée
- Pourcentage achevé
- Type Régression
- Catégorie Application
-
Assignée à
DevTeam - Système d'exploitation Tous
- Sévérité Basse
- Priorité Moyenne
- Basée sur la version 17.x-dev
- Due pour la version 18.0
-
Échéance
Non décidée
- Votes
- Privée
Concerne le projet: BeDesk-Express
Ouverte par DevTeam - 2017-12-26
Dernière modification par DevTeam - 2017-12-26
Ouverte par DevTeam - 2017-12-26
Dernière modification par DevTeam - 2017-12-26
FS#1594 - Police "Lucida" ne peut être embarquée suite à une restriction de licence
La police Lucida fournie avec Java ne peut plus être embarquée (embedded) suite à une restriction de licence.
Il faut donc la retirer de la liste des polices compatibles.
Il serait utile de chercher une police similaire pour la remplacer systématiquement avec un moindre effort.
Le souci c’est que lorsqu’on crée un document PDF, le texte clair du document est intégré pour les dispositifs de lecture PDF, mais pour le rendu, il faut embarqué la police. Si Lucida ne peut plus être embarquée à partir du paquet Java, il faut la remplacer.
TRACE 0:01:54.809 <bedesk.font_tk.FontTk.fetchFontFile> Use cached font : Lucida Sans as /cache/temp/fonts/65a32ef1a5206cc4f4e8eaa45cca59a51c9b1162.bin Fetching Font File : Lucida Sans -> /cache/temp/fonts/65a32ef1a5206cc4f4e8eaa45cca59a51c9b1162.bin com.lowagie.text.DocumentException: Lucida Sans.ttf cannot be embedded due to licensing restrictions. at com.lowagie.text.pdf.TrueTypeFontUnicode.<init>(TrueTypeFontUnicode.java:101) at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:685) at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:603) at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:546) at bedesk.font_tk.FontTk$1.awtToPdf(FontTk.java:111) at com.lowagie.text.pdf.PdfGraphics2D.getCachedBaseFont(PdfGraphics2D.java:1006) at com.lowagie.text.pdf.PdfGraphics2D.setFont(PdfGraphics2D.java:999) at java.desktop/javax.swing.text.GlyphPainter1.paint(Unknown Source) at java.desktop/javax.swing.text.GlyphView.paintTextUsingColor(Unknown Source) at java.desktop/javax.swing.text.GlyphView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.ParagraphView.paint(Unknown Source) at java.desktop/javax.swing.text.html.ParagraphView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.TableView$RowView.paint(Unknown Source) at java.desktop/javax.swing.text.html.TableView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.update(Unknown Source) at bedesk.pageeditor.PageEditorPane.paint(PageEditorPane.java:325) at bedesk.pageeditor.PrintableEditorPane.print(PrintableEditorPane.java:1314) at bedesk.printing.MyPDFWriter.paintToGraphics(MyPDFWriter.java:223) at bedesk.printing.MyPDFWriter.writePrintable(MyPDFWriter.java:173) at bedesk.printing.Imprimer$1PDFThread.run(Imprimer.java:1056) Exception in thread "Thread-19" java.lang.NullPointerException at com.lowagie.text.pdf.PdfWriter.addSimple(PdfWriter.java:2141) at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(PdfContentByte.java:1388) at com.lowagie.text.pdf.PdfGraphics2D.drawString(PdfGraphics2D.java:378) at java.desktop/sun.swing.SwingUtilities2.drawChars(Unknown Source) at java.desktop/javax.swing.text.Utilities.drawTabbedText(Unknown Source) at java.desktop/javax.swing.text.GlyphPainter1.paint(Unknown Source) at java.desktop/javax.swing.text.GlyphView.paintTextUsingColor(Unknown Source) at java.desktop/javax.swing.text.GlyphView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.ParagraphView.paint(Unknown Source) at java.desktop/javax.swing.text.html.ParagraphView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.TableView$RowView.paint(Unknown Source) at java.desktop/javax.swing.text.html.TableView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.text.BoxView.paintChild(Unknown Source) at java.desktop/javax.swing.text.BoxView.paint(Unknown Source) at java.desktop/javax.swing.text.html.BlockView.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicTextUI.update(Unknown Source) at bedesk.pageeditor.PageEditorPane.paint(PageEditorPane.java:325) at bedesk.pageeditor.PrintableEditorPane.print(PrintableEditorPane.java:1314) at bedesk.printing.MyPDFWriter.paintToGraphics(MyPDFWriter.java:223) at bedesk.printing.MyPDFWriter.writePrintable(MyPDFWriter.java:173) at bedesk.printing.Imprimer$1PDFThread.run(Imprimer.java:1056)
Cette tâche est une sous-tâche de FS#1600 - Détecter si la licence d'une police de caractère autorise son em