[Libreoffice-bugs] [Bug 144961] New: Font matching issues
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 6 06:21:44 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=144961
Bug ID: 144961
Summary: Font matching issues
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: graphics stack
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: chris.sherlock79 at gmail.com
Description:
Whilst testing font match matching, I uncovered some issues.
1. The matching algorithm detects that the font is a CJK font if there are any
CJK characters in the font name. However, if you searched for a CJK font
against a font that is not a CJK font (i.e. the family name has no
CJK characters) then it will still match against this font family.
2. The rounded, typewriter, gothic, schoolbook and titling/captilization
checks will always succeed, regardless of what it is matched against.
3. When checking if a font family is fixed, we also check if it has a
typewriter attribute - this code is not reachable when using a font
like typewriter or lineprinter which uses Typewriter and Fixed
attributes.
4. Despite using the search parameter in FindFontFamilyByAttributes() it will
aways return a font regardless of whether the search font exists or not.
Steps to Reproduce:
Exposed via unit testing.
Actual Results:
Unit tests I wrote failed.
Expected Results:
Unit tests should pass.
Reproducible: Always
User Profile Reset: No
Additional Info:
This is across all LibreOffice builds.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20211006/9651fbbf/attachment.htm>
More information about the Libreoffice-bugs
mailing list