[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 Kevin Suo changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #8 from Kevin Suo --- Mark as New since there is at least one duplicates. I did some debugging on this issue these days. I already found out how those related codes work, but I don't think I have the ability to revolve this issue. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 Kevin Suo changed: What|Removed |Added CC||philip...@hotmail.com --- Comment #7 from Kevin Suo --- *** Bug 113124 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 Kevin Suo changed: What|Removed |Added See Also||https://bugs.documentfounda ||tion.org/show_bug.cgi?id=11 ||3124 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 --- Comment #6 from Kevin Suo --- See the function familyNameOverride in codes prior to the following commit; https://cgit.freedesktop.org/libreoffice/core/commit/?id=abe4d7bd0a1ec4b5a31cc5622080952e4cd53ebf This map was removed in that commit, but this is perfect to resolve this bug. The related code for the setting of font family name is in the following line https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/tree/drawtreevisiting.cxx?r=e6dfaf9f#830 At this moment, the family name as represened by; aFontProps[ "fo:font-family" ] = rFont.familyName; is the wrong name without space. This family name was passed here after been processed by LineParser::parseFontFamilyName in: https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/wrapper/wrapper.cxx?r=12362fc4#511 After this line, the PDF font names is interpreted as the following and is then shown on Draw: LiberationSerif (should be "Liberation Serif" in ODF XML stream) TimesNewRommanBold (should be "Times New Roman" and the isBold should be true) SimSun (should be Chinese name "宋体") ... -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 --- Comment #5 from sergio.calleg...@gmail.com --- At least on Linux, it should be possible to query the system font machinery for the font that actually uses that postscript name. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 --- Comment #4 from Kevin Suo --- (In reply to V Stuart Foote from comment #2) We changed the font to LiberationSerif on pdf export, so why not change it back to Liberation Serif on pdf import? I think a pdfToDrawFontMap can do this. We can convert the commonly known fonts back to the corrent names, and leave those unknown fonts "as is". I understand Draw is not a pdf editor, but since we have the pdf import filter, we surely should make this filter work better. -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 V Stuart Foote changed: What|Removed |Added Version|7.1.4.2 release |Inherited From OOo -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 V Stuart Foote changed: What|Removed |Added CC||sergio.calleg...@gmail.com --- Comment #3 from V Stuart Foote --- *** Bug 104264 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 143095] Export of ODT document with "Liberation Serif" font to PDF, on round-trip the font is shown as "LiberationSerif" when PDF filter imported into Draw
https://bugs.documentfoundation.org/show_bug.cgi?id=143095 V Stuart Foote changed: What|Removed |Added Summary|PDF Import: When export an |Export of ODT document with |ODT document with |"Liberation Serif" font to |"Liberation Serif" font to |PDF, on round-trip the font |PDF, the font is shown as |is shown as |"LiberationSerif" when open |"LiberationSerif" when PDF |the PDF with Draw |filter imported into Draw CC||jl...@mail.com, ||t...@libreoffice.org, ||vmik...@collabora.com, ||vstuart.fo...@utsa.edu, ||vv...@yandex.ru Blocks||99746 OS|Linux (All) |All --- Comment #2 from V Stuart Foote --- Observation is valid Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 1db375e06516d0532f01f9585986617aa3079866 CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded But is this a bug? I don't think so... LibreOffice is not a PDF "editor", we filter import a PDF (to Draw by default, but also to Writer, or Imrpess). While font names held within PDF (including our filter exports to PDF) are never the installed system font names. Rather they are the PDF parsed names for the font that may or maynot be embedded--with subset or fully into the PDF. We should handle the subsetting better--bug 82163 or bug 101220, needed for touchup of a PDF--as other 'viewers' support. But since we do not 'edit' a PDF the font names are irrelevant--and correctly receive a fall back font assignment. Withing LO filter import, the fallback font assignment could be improved--to better match what we exported into the PDF against the internal PDF subset fonts. But that is an enhancement. Our other import filter is pdfium based. Used for the Insert -> Image dialog, it recomposes the PDF page(s) using the internal font glyph paths to render the text runs described. If the fonts are not embedded it just uses the paths. Fidelity is high (though the bitmap rendering remains low resolution, bug 115811). Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=99746 [Bug 99746] [META] PDF import filter in Draw -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs