Community
    • Login

    changing font not working in v8.6 (but changing size and color does work)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    25 Posts 11 Posters 6.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bennetthaseltonB
      bennetthaselton @Terry R
      last edited by

      @Terry-R Here are my “Global override” settings. I had the same hunch as you so I tried setting font to Fixedsys here too but it didn’t work. (And note foreground color, background color, and size are still following what is specified in the Default style dialog, not here.)

      2274d7a1-a857-43df-baf0-84433f90790f-image.png

      1 Reply Last reply Reply Quote 0
      • bennetthaseltonB
        bennetthaselton @supasillyass
        last edited by

        @supasillyass assume this is a setting that’s enabled/disabled in Windows, how do I enable/disable it? I googled it but couldn’t find any info about how to tell if I have DirectWrite enabled, or how to turn it on/off.

        supasillyassS 1 Reply Last reply Reply Quote 0
        • supasillyassS
          supasillyass @bennetthaselton
          last edited by

          @bennetthaselton Notepad++ Preferences > MISC. > Use DirectWrite

          bennetthaseltonB 1 Reply Last reply Reply Quote 0
          • bennetthaseltonB
            bennetthaselton @supasillyass
            last edited by

            @supasillyass OK yes, turning off DirectWrite (and restarting Notepad++ as required) fixed the problem.

            Also, in Notepad++ 8.5.8 DirectWrite was disabled by default so I didn’t run into this issue, but in Notepad 8.6 it is enabled by default.

            (OK now the problem is solved for me, so it’s up to the devs if they want to try to “solve” it for other users, but – not sure what would be the best way to prevent other users from running into this problem. Perhaps when you switch to a font that is a bitmap font, Notepad++ checks if DirectWrite is enabled and alerts the user that they have to disable DirectWrite if they want to use that font?)

            Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn @bennetthaselton
              last edited by PeterJones

              @bennetthaselton said in changing font not working in v8.6 (but changing size and color does work):

              so it’s up to the devs if they want to try to “solve” it for other users

              If Notepad++ devs got deep into all of the potential peculiarities of font issues, they could probably spend all of their time there. Better to expend their efforts on real text editing functionality!

              1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @bennetthaselton
                last edited by

                @bennetthaselton said in changing font not working in v8.6 (but changing size and color does work):

                not sure what would be the best way to prevent other users from running into this problem

                Encourage them to not use fonts that are 40 years old? Bitmap font technology was big in the 80s, but even Microsoft supported True Type fonts starting in Windows 3.1 in 1992.

                Fixedsys was a bitmap font released in 1985, and used as the default font for Microsoft Notepad through the Windows ME era (~2000). After that, even MS started defaulting to a non-bitmap font (Lucida Console) as the default, due to the superiority of non-bitmap formats for fonts.

                The fact that Windows still allows people to use bitmap fonts at all in Win 11 and beyond is the extraordinary thing, not the fact that many Windows features (including Direct Write) no longer support using 1980s font technology.

                mkupperM bennetthaseltonB 2 Replies Last reply Reply Quote 1
                • mkupperM
                  mkupper @PeterJones
                  last edited by

                  @PeterJones said in changing font not working in v8.6 (but changing size and color does work):

                  using 1980s font technology

                  Yesterday I got a lot of satisfaction out of using a cold chisel and a hammer to deal with a problem that others, using high tech tools, were straining and struggling with all their might to solve. :-)

                  Thank you though as I was wondering why DirectWrite sometimes fails and why for a long time Notepad++ did not make it the default.

                  1 Reply Last reply Reply Quote 0
                  • bennetthaseltonB
                    bennetthaselton @PeterJones
                    last edited by

                    @PeterJones well it’s not just FixedSys, the same bug repros with more than half of the available fonts on my system.

                    Enable DirectWrite (and restart if not already enabled), type some text in Notepad++, then go to Global Styles->Default Style, and hit the down arrow keyboard key in the “Font name” dropdown to iterate through the available choices. (The selection takes effect instantly, without having to do Save & Close.) On my system, more than half of the font selections have no effect.

                    Alan KilbornA supasillyassS 2 Replies Last reply Reply Quote 0
                    • Alan KilbornA
                      Alan Kilborn @bennetthaselton
                      last edited by

                      @bennetthaselton said in changing font not working in v8.6 (but changing size and color does work):

                      Enable DirectWrite (and restart if not already enabled), type some text in Notepad++, then go to Global Styles->Default Style, and hit the down arrow keyboard key in the “Font name” dropdown to iterate through the available choices. (The selection takes effect instantly, without having to do Save & Close.) On my system, more than half of the font selections have no effect.

                      Tried this test using N++ 8.6 on a very-lightly customized Win11 Pro. And Notepad++ changed the font every time.

                      bennetthaseltonB 1 Reply Last reply Reply Quote 1
                      • supasillyassS
                        supasillyass @bennetthaselton
                        last edited by

                        @bennetthaselton said in changing font not working in v8.6 (but changing size and color does work):

                        On my system, more than half of the font selections have no effect.

                        Most of those are probably not monospaced fonts anyway. You should still have a good selection of nice looking monospaced fonts to choose from or download some more. Or just disable DirectWrite, but it does have other benefits.

                        bennetthaseltonB 1 Reply Last reply Reply Quote 2
                        • bennetthaseltonB
                          bennetthaselton @supasillyass
                          last edited by

                          @supasillyass thanks. I’m not trying to solve the problem for myself now though (I can use FixedSys if I disable DirectWrite), I’m just trying to narrow down the bug in case anyone wants to fix it.

                          1 Reply Last reply Reply Quote 0
                          • bennetthaseltonB
                            bennetthaselton @Alan Kilborn
                            last edited by

                            @Alan-Kilborn Well now I’m wondering what the pattern is :)
                            Trying a clump of six fonts that appeared alphabetically in the list, and picking each one, these are the selections that had an effect:

                            Eras Medium ITC - no
                            Felix Titling - yes
                            Fixedsys - no
                            Footlight MT Light - no
                            Forte - yes
                            Franklin Gothic Book - no

                            Out of the four that didn’t work, presumably they’re not all bitmap fonts (I don’t know much about this, but for all of them except Fixedsys, Control Panel says they are TrueType fonts, which means they are vector fonts and not bitmap, right?). So at least on my system, it’s not just bitmap fonts that it doesn’t work for.

                            983957ab-6987-4f5a-b832-cf9fb37f9f09-image.png

                            Alan KilbornA T 2 Replies Last reply Reply Quote 0
                            • Alan KilbornA
                              Alan Kilborn @bennetthaselton
                              last edited by

                              @bennetthaselton

                              Well, further experimentation has given me one odd bit:

                              I looked for the fonts you listed (Eras … Franklin) and I only have Fixedsys. I have Franklin Gothic Medium, so I changed from Fixedsys to that (FGM). The odd thing is that for that change, I saw no change in Notepad++ rendering, i.e., after changing to FGM, it still appears as if I was using Fixedsys.

                              In short: No ideas. :-)

                              dr ramaanandD 1 Reply Last reply Reply Quote 0
                              • dr ramaanandD
                                dr ramaanand @Alan Kilborn
                                last edited by dr ramaanand

                                @Alan-Kilborn @Terry-R @PeterJones @bennetthaselton @guy038 or anybody else, so using these, can I change the color, font or size of just one of the many lines in my file? I want one line to stand out and look different, permanently (that is, even if I switch off the laptop/desktop, the changes should remain the next time I open and see that file).

                                dr ramaanandD Alan KilbornA 2 Replies Last reply Reply Quote 0
                                • dr ramaanandD
                                  dr ramaanand @dr ramaanand
                                  last edited by

                                  @dr-ramaanand I was able to change the background color by clicking settings, selecting Global Styles, then Selected text colour, clicking on background color and selecting a different background color. Now I will switch off my system to check if it is a permanent change.

                                  dr ramaanandD 1 Reply Last reply Reply Quote 0
                                  • dr ramaanandD
                                    dr ramaanand @dr ramaanand
                                    last edited by dr ramaanand

                                    @dr-ramaanand it looks like that changes the background color of whatever is selected. Now, how do I change the background color of a line (when there are multiple lines) permanently? If that is not possible, please let me know how to make a line or two stand out permanently (those lines should stand out and look different, permanently, that is, even if I switch off the laptop/desktop, the changes should remain as they are, the next time I open and see that file)

                                    1 Reply Last reply Reply Quote 0
                                    • Alan KilbornA
                                      Alan Kilborn @dr ramaanand
                                      last edited by

                                      @dr-ramaanand said in changing font not working in v8.6 (but changing size and color does work):

                                      can I change the color, font or size of just one of the many lines in my file? I want one line to stand out and look different

                                      It can’t reasonably be done, and in fact, it isn’t a reasonable expectation for a text editor.
                                      See HERE for further info.

                                      dr ramaanandD 1 Reply Last reply Reply Quote 1
                                      • dr ramaanandD
                                        dr ramaanand @Alan Kilborn
                                        last edited by

                                        @Alan-Kilborn thank you! I just saved my file with every thing in that line in capital letters. That seems the only option.

                                        1 Reply Last reply Reply Quote 1
                                        • T
                                          Tobithy @bennetthaselton
                                          last edited by

                                          My preferred font, Source Code Pro, is definitely a TrueType font, but it also is affected by this bug.

                                          fonts dot google dot com/specimen/Source+Code+Pro (sorry breaking it up, I can’t post links)

                                          Disabling DirectWrite allows me to use Source Code Pro again, thank you for the tip. This is just another data point.

                                          Andi KiisselA 1 Reply Last reply Reply Quote 1
                                          • Andi KiisselA
                                            Andi Kiissel @Tobithy
                                            last edited by

                                            @Tobithy

                                            N++ DirectWrite is set to Scintilla’s SC_TECHNOLOGY_DIRECTWRITE (1), but there are also SC_TECHNOLOGY_DIRECTWRITERETAIN (2) and SC_TECHNOLOGY_DIRECTWRITEDC (3).
                                            In N++ UI this can not be changed, but you can try with scripting, for example with NppExec

                                            sci_sendmsg SCI_SETTECHNOLOGY 3
                                            

                                            I use Source Code Pro with DIRECTWRITEDC and quite happy with it.

                                            xomxX 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post
                                            The Community of users of the Notepad++ text editor.
                                            Powered by NodeBB | Contributors