rizonesoft / Notepad3

Notepad like text editor based on the Scintilla source code. Notepad3 based on code from Notepad2 and MiniPath on code from metapath. Download Notepad3:
https://www.rizonesoft.com/downloads/notepad3/
Other
5.08k stars 335 forks source link

Problem with Fixedsys font #3185

Closed m-herman closed 3 years ago

m-herman commented 3 years ago

In Notepad3 x64 (version 5.21.227), under Windows 10 (1909), I am trying to change the "global default font" to Fixedsys (a standard old Windows font). The font selection window that comes up in Notepad3 has a "Sample" box which shows me accurately what the font should look like, but when I hit the "OK" box, I get a proportionally-spaced font in my document that is nothing like Fixedsys.

This inconsistent behavior was not present in version 5.20.615 that I have been using for a while, but it is present in 5.21.227. I then tried to ensure that font-related Notepad3.ini settings were consistent between the two versions -- I have both instances set up as "portable" versions in separate folders on my hard drive -- but that has not helped. I then tried a few other Notepad3 versions after 5.20.615 and am having the same issue in all of those versions.

Looking at the changelog files, it appears that a few changes related to fonts were done in version 5.20.722, so perhaps that has led to the behavior I'm seeing. Again, 5.20.615 accurately displays the Fixedsys font in documents, as did earlier versions, but later versions do not.

Thank you for any assistance you can provide.

hpwamr commented 3 years ago

Hello @RaiKoHoff , I confirm this issue which is first appeared with Notepad3Portable_5.20.521.1_BETA.paf.exe with the "Font Selection refactoring" (same problem reported as "Sample box" not filled) ๐Ÿค”

PR related:

RaiKoHoff commented 3 years ago

The FixedSys Font seems to have some problems ๐Ÿค” FixedSys Excelsior is fine: image

RaiKoHoff commented 3 years ago

The problem is related to the chosen Rendering Technology (see also #1384). The modern DirectWrite Technology need "Scalable Fonts" (it is working with non scalable fonts but not without drawbacks). So the Font-Selection-Dialog will be limited to Scalable Fonts only in case of DirectWrite Technology (upcoming beta). If you really need to use "good old Fixedsys" font, you have to switch back to GDI (no ligatures) Technology, but I recommend to install a scalable Fixedsys like "Fixedsys Excelsior" (https://github.com/kika/fixedsys). (If you like do convert it yourself (TTX -> TTF) you might read this: https://reposhub.com/python/learning-tutorial/arrowtype-fonttools-intro.html. If you trust us, you can unpack and install attached "Fixedsys Excelsior" (FSEX.ttf) FSEX.zip

hpwamr commented 3 years ago

Hello @m-herman

2021-03-12_131346


Feel free to test the "BETA/RC PortableApps" version "Notepad3Portable_5.21.312.2_beta.paf" or newer, see 1st list in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup" versions "Notepad3_5.21.312.2_beta_Setup" or newer, see 2nd list in issue #1129.

Comments and suggestions are welcome... ๐Ÿ˜ƒ

m-herman commented 3 years ago

Without going to the beta version from today, I have tried using the Fixedsys Excelsior font on 5.21.227 and that appears to work. Separately, I have tried the Settings | Technology | Rendering | GDI (no ligatures) choice on 5.21.227 with the old Fixedsys font and that also appears to work.

In trying out the 5.21.312, it appears that the use of the various choices in Settings | Technology | Rendering will now impact which fonts show up as available for the default font selection. That's fine. Because apparently the secret with having the "old" fonts display properly is the GDI (no ligatures) choice.

Thank you for teaching me something new with this, as well as for solving the problem.

hpwamr commented 3 years ago

Hello @m-herman , As far as I'm concerned, I think you (requester) can close this issue...