New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode Characters & Font Fallback Support #870

Open
AceFrahm opened this Issue Sep 7, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@AceFrahm

AceFrahm commented Sep 7, 2015

Some weirdness with viewing Unicode glyphs, even on a machine with fallback fonts.

A font with full fallback for every Unicode code point still won't show anything but a square for some things.

Try pasting this into Notepad++


Interobangs on one line:‽‽
Upper unicode characters (16 or 32-bits? not just 8-bit from the Basic Multilingual Plane) on a separate line: [ 🔊, 🎥, 📕 ]
Interobangs followed by some upper Unicode characters on the same line: ‽‽ , [ 🔊, 🎥, 📕 ]

arrows on the same line : ↑↓↙↘.

arrows on 2 lines : ↑↓
↙↘.


Now, a user should have some fallback fonts setup, as described here with "Font Linking" (which is different than straight-up 'fallback font'), it uses GDI
[https://msdn.microsoft.com/en-us/goglobal/bb688134.aspx]

HKEY_LOCAL_MACHINE\SOFTWARE\Micrrosoft\Windows NT\CurrentVersion\FontLink\SystemLink

Here is a list of "Font Linked" fonts I'm using with Arial Unicode MS under that registry setting.
unifont_csur-7.0.06.ttf, Unifont CSUR
unifont_upper_csur-7.0.06.ttf, Unifont Upper CSUR
Constructium.ttf, Constructium
Nuvenon.ttf, Nuvenon
LastResort.ttf, LastResort
UnicodeBMPFallback.ttf, Unicode BMP Fallback SIL

This Font Linked list ought to cover every single Unicode code point with SOME glyph, but it seems Notepad++ can't handle Unicode well or doesn't take advantage of GDI ?

the problem is also described here:
[http://stackoverflow.com/questions/20749958/unicode-characters-messed-up-after-linebreak]

!‽???‽!!! , 🔊, 🎥, 📕

@h-h-h-h

This comment has been minimized.

Contributor

h-h-h-h commented Sep 8, 2015

Related issue: #813.

Making code sequences of the characters with `...` might resolve the issue of Github making images out of them.

@Kemipso

This comment has been minimized.

Kemipso commented May 2, 2018

Following your example (but with different fonts for my own needs) worked fine, and I could not reproduce the issue on Notepad++. I'm using Windows 10, April 2018 update and Notepad++ v7.5.4 (64-bit).

Here is how it looks on my end:
2018-05-02 - 001055

And here is my setup, based on Inconsolata/Consolas for most common characters, and a bunch of weird fonts for other symbols.

Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink

New multi-string, with value name:
Inconsolata

Value data:

CONSOLA.TTF,Consolas Regular
SEGOEUISL.TTF,Segoe UI Semilight
MSJH.TTC,Microsoft Jhenghei UI
MSYH.TTC,Microsoft YaHei
MALGUNSL.TTF,Malgun Gothic Semilight
SEGUISYM.TTF,Segoe UI Symbol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment