Bug 137903 - Fonts- Special characters with high numbers not found
Summary: Fonts- Special characters with high numbers not found
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-01 11:09 UTC by Mike Sapsard
Modified: 2020-11-01 19:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshots of fontforge showing missing glyphs (137.14 KB, application/vnd.oasis.opendocument.text)
2020-11-01 11:11 UTC, Mike Sapsard
Details
Character dialog Font Features for applying Stylistic Set alternate glyphs (104.53 KB, image/png)
2020-11-01 14:32 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Sapsard 2020-11-01 11:09:03 UTC
Description:
When using DM Sans (a google ttf font) it has some special characters at 65527 U + 0061 and 65553 U + 0033 (as reported with fontforge).

It is not possible to insert them as special characters, because the zeros in 0061 are deleted.

Steps to Reproduce:
1.Install DM Sans
2.Open LO and Writer
3.Insert special character U + 0061

Actual Results:
character 61

Expected Results:
character 0061


Reproducible: Always


User Profile Reset: Yes



Additional Info:
See attachment that shows characters exist in fontforge.
Comment 1 Mike Sapsard 2020-11-01 11:11:14 UTC
Created attachment 166900 [details]
Screenshots of fontforge showing missing glyphs

DM Sans glyphs that LO cannot find
Comment 2 V Stuart Foote 2020-11-01 13:24:38 UTC Comment hidden (obsolete)
Comment 3 V Stuart Foote 2020-11-01 14:30:48 UTC
OK, so looking at DM Sans [1], the glyps you want to use are part of its "Stylistic Alternates", the 'a' is in "Stylistic Set 2" (a.ss02) and the '3' is in "Stylistic Set 4" (3.ss04).

We don't expose the alternates in the Special Character dialog, but that might be a useful enhancement. Rather the alternates are selected from the 'Character...' dialog which will display a preview of the glyph(s) to be rendered, including alternates exposed with the 'Features...' button that opens and exposes the 'Font Features' dialog. Applicable to both Graphite and OpenType fonts, the dialog provides checkbox toggles for all features of the font.

And when applied, the Font name field will be appended with the stylistic set.

Because the glyph you want come from two different 'Stylistic Sets' they have to be individually selected and have feature applied. The access all will mix the result. 

=-refs-=
Comment 4 V Stuart Foote 2020-11-01 14:32:49 UTC
Created attachment 166905 [details]
Character dialog Font Features for applying Stylistic Set alternate glyphs

clip showing the sample document with the alternate glyphs rendered using the Font Features dialog.
Comment 5 V Stuart Foote 2020-11-01 14:35:24 UTC
(In reply to V Stuart Foote from comment #3)
> 
> =-refs-=

[1] https://fonts.google.com/specimen/DM+Sans
Comment 6 Mike Sapsard 2020-11-01 19:41:10 UTC
Thanks for putting me right. I can reproduce everything as you say under Format | Character| Features.

It is not a bug. However, I could not make the suggestions about entering PUA style using U+FFF7 or U+FFFD respectively and using alt-x work. 

Previously I have always found what I needed under Insert | Special Character, and I was unaware that such characters could be found like this.

If there were a way of enhancing Insert | Special Character it would be great, because I suspect many users have not yet found Format | Character| Features. Also a single place to go to might be a usability improvement.