notepad2-mod icon indicating copy to clipboard operation
notepad2-mod copied to clipboard

Some characters aren't always displayed

Open Rikk opened this issue 9 years ago • 8 comments

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).

Rikk avatar Jul 11 '15 22:07 Rikk

I can reproduce this with r955

klonos avatar Jul 11 '15 23:07 klonos

Does the same happen with Scite? On Jul 12, 2015 1:23 AM, "Ricardo" [email protected] wrote:

This issue has been reported for Notepad++ https://github.com/notepad-plus-plus/notepad-plus-plus/issues/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 https://github.com/XhmikosR/notepad2-mod/issues/121.

XhmikosR avatar Jul 12 '15 08:07 XhmikosR

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

Rikk avatar Jul 12 '15 20:07 Rikk

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.

XhmikosR avatar Jul 12 '15 20:07 XhmikosR

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

bluenlive avatar Jul 15 '15 12:07 bluenlive

@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 avatar Jul 15 '15 22:07 Rikk

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

zufuliu avatar Jul 28 '18 22:07 zufuliu

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

zufuliu avatar Aug 10 '18 08:08 zufuliu