Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Some characters aren't always displayed #121

Open
Rikk opened this issue Jul 11, 2015 · 8 comments
Open

Some characters aren't always displayed #121

Rikk opened this issue Jul 11, 2015 · 8 comments
Labels

Comments

@Rikk
Copy link

Rikk commented Jul 11, 2015

This issue has been reported for Notepad++, but also happens here.

nO-OnE-910 commented 8 hours ago

I have a very strange issue with my npp when I try to put a ∈ [element of], ∘ [small circle] or ⌀ [average] in a document. These characters are only displayed when I put a ○ [large circle] or ⊥ [bottom] character in the same line behind them, otherwise they are just blank squares.
These are of course only the characters I tested, there are probably a lot more.

Here is a gif of the bug in action: (¬ ω π to show that only the 3 are affected)
gif
I'm just putting in or removing the character, it changes instantly

Am I the only one with these issues?

Test it yourself by putting this in your npp:



∈ ○
∘ ○
⌀ ○

∈ ⊥
∘ ⊥
⌀ ⊥

edit: ℕ ℤ ℚ ℝ ℂ ℍ are also part of the displayed only sometimes crew

Interestingly, this also happens on notepad2 v4.2.25, notepad2-mod, but not on notepad2 v5.0.26-beta4 nor SciTE (original Scintilla editor).

@klonos
Copy link

klonos commented Jul 11, 2015

I can reproduce this with r955

@XhmikosR
Copy link
Owner

Does the same happen with Scite?
On Jul 12, 2015 1:23 AM, "Ricardo" notifications@github.com wrote:

This issue has been reported for Notepad++
notepad-plus-plus/notepad-plus-plus#474, but
also happens here.

nO-OnE-910 commented 8 hours ago

I have a very strange issue with my npp when I try to put a ∈ [element
of], ∘ [small circle] or ⌀ [average] in a document. These characters are
only displayed when I put a ○ [large circle] or ⊥ [bottom] character in the
same line behind them, otherwise they are just blank squares.
These are of course only the characters I tested, there are probably a lot
more.

Here is a gif of the bug in action: (¬ ω π to show that only the 3 are
affected)
[image: gif]
https://camo.githubusercontent.com/4500b2789bf4212acb6490543f3c2b8affa623b0/687474703a2f2f692e696d6775722e636f6d2f716f48777766432e676966
I'm just putting in or removing the character, it changes instantly

Am I the only one with these issues?

Test it yourself by putting this in your npp:



∈ ○
∘ ○
⌀ ○

∈ ⊥
∘ ⊥
⌀ ⊥

edit: ℕ ℤ ℚ ℝ ℂ ℍ are also part of the displayed only sometimes crew


Reply to this email directly or view it on GitHub
#121.

@Rikk
Copy link
Author

Rikk commented Jul 12, 2015

Interestingly, this also happens on notepad2 v4.2.25, notepad2-mod, but not on notepad2 v5.0.26-beta4 nor SciTE (original Scintilla editor).

@XhmikosR
Copy link
Owner

So I guess it's been fixed upstream. Not sure if there's the source code available for Notepad2 beta but last time I checked it wasn't.

@bluenlive
Copy link
Contributor

Do you believe in God?
In this world, there is one. The God is called Florian Balmer.

I asked this problem to The God, and The God answered as following...
I'll write a PR.

Hello

Notepad2 5.0.26-beta4 makes use of SC_TECHNOLOGY_DIRECTWRITE [0],
which seems to perform better font linking than the traditional
SC_TECHNOLOGY_DEFAULT mode, and may thus fix some GDI quirks? The same
problem seems to appear in Notepad2 5.0.26-beta4 if DirectWrite is
disabled [1].

[0] http://www.scintilla.org/ScintillaDoc.html#SCI_SETTECHNOLOGY
[1] http://www.flos-freeware.ch/development-releases/notepad2-FAQs.html#d2d-rendering

@Rikk
Copy link
Author

Rikk commented Jul 15, 2015

@bluenlive thanks for having the initiative to contact him!

Btw, 5.0.26-beta4 also seems to improve anti-aliasing/cleartype, but it seems to have a problem in selecting and using some fonts, eg:
source code pro extralight comparison

Rikk referenced this issue in notepad-plus-plus/notepad-plus-plus Jul 30, 2015
1. fix the hanging problem for some rare situation (some specific
graphic cards?) by replacing otf file by ttf file.
2. make better font look by adding bold, italic and bold-italic fonts
3. load Source Code Pro privately so it won't be listed for the other
application during Notepad++ session.
@zufuliu
Copy link
Contributor

zufuliu commented Jul 28, 2018

This bug not occurs when font is set to DejaVu Sans Mono (v2.3.7, https://dejavu-fonts.github.io/).

@zufuliu
Copy link
Contributor

zufuliu commented Aug 10, 2018

The unknown font bug @Rikk found has a temporary fix at https://sourceforge.net/p/scintilla/bugs/2027/.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants