• Login
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 8.3k 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.
  • B
    bennetthaselton @Alan Kilborn
    last edited by Jan 6, 2024, 4:17 AM

    @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

    A T 2 Replies Last reply Jan 6, 2024, 11:37 AM Reply Quote 0
    • A
      Alan Kilborn @bennetthaselton
      last edited by Jan 6, 2024, 11:37 AM

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

      D 1 Reply Last reply Jan 7, 2024, 3:51 AM Reply Quote 0
      • D
        dr ramaanand @Alan Kilborn
        last edited by dr ramaanand Jan 7, 2024, 4:12 AM Jan 7, 2024, 3:51 AM

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

        D A 2 Replies Last reply Jan 7, 2024, 8:31 AM Reply Quote 0
        • D
          dr ramaanand @dr ramaanand
          last edited by Jan 7, 2024, 8:31 AM

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

          D 1 Reply Last reply Jan 7, 2024, 8:39 AM Reply Quote 0
          • D
            dr ramaanand @dr ramaanand
            last edited by dr ramaanand Jan 7, 2024, 9:20 AM Jan 7, 2024, 8:39 AM

            @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
            • A
              Alan Kilborn @dr ramaanand
              last edited by Jan 7, 2024, 11:25 AM

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

              D 1 Reply Last reply Jan 7, 2024, 3:22 PM Reply Quote 1
              • D
                dr ramaanand @Alan Kilborn
                last edited by Jan 7, 2024, 3:22 PM

                @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 Feb 21, 2024, 12:23 AM

                  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.

                  A 1 Reply Last reply Feb 21, 2024, 9:12 AM Reply Quote 1
                  • A
                    Andi Kiissel @Tobithy
                    last edited by Feb 21, 2024, 9:12 AM

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

                    X 1 Reply Last reply Feb 20, 2025, 2:55 PM Reply Quote 2
                    • T
                      Tobias Lind
                      last edited by Feb 19, 2025, 10:52 PM

                      I think I’ve found some more info on this issue.
                      When DirectWrite is enabled, I can only use the base version of the font. Any other variant will default to some fallback font.

                      E.g. “Bahnschrift” works, but none of its varians: “Bahnschrift Condensed”, “Bahnschrift Light”, etc.
                      “Ariel” works, but not “Ariel Black”, “Ariel Narrow”, “Ariel Rounded MT Bold”.

                      I’d like to use “Fira Code Medium”, but I’ll have to use “Fira Code”…

                      (I don’t want to turn off DirectWrite, because some chars won’t render properly without it)

                      1 Reply Last reply Reply Quote 1
                      • X
                        xomx @Andi Kiissel
                        last edited by xomx Feb 20, 2025, 3:01 PM Feb 20, 2025, 2:55 PM

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

                        In N++ UI this can not be changed,

                        In the upcoming N++ version (probably v8.7.8) these Scintilla rendering modes will be accessible via the standard N++ Preferences > MISC.: GitHub commit.

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

                        When DirectWrite is enabled, I can only use the base version of the font. Any other variant will default to some fallback font.

                        The whole problem with the N++ DirectWrite mode & fonts is in the fact that the DirectWrite uses WSS (Weight-Stretch-Style) font family model whereas the older GDI RBIZ (Regular-Bold-Italic…) one. Notepad++ originally supported the older GDI font handling only, then it makes the newer DirectWrite mode accessible but did not accommodate the existing N++ GDI font handling code to match the WSS model of the DirectWrite font families.

                        There was a nice patch for the Scintilla library, which solves exactly that but unfortunately it has not been accepted. So someone has to fix that directly in the N++ codebase. There is the MS DirectWrite interface IDWriteGdiInterop helper intended exactly for that job, so maybe a challenge for someone capable with free time…?

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