Community
    • Login

    I cannot save Language: Global Styles Default Style font name

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 4 Posters 545 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.
    • R YR
      R Y
      last edited by

      I don’t know why I cannot save Language: Global Styles > font name.
      When I change the font name and click “Save & Close”. And close the notepad++ . Open again, the font name will auto rollback to default “Courier New”.

      Settings > Style Configurator > Language: Global Styles > Style: Default Style > Font name.

      Windows 10 (64 bit) , notepad ++ v7.9.1 (32 bit)

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

        @R-Y ,

        I cannot replicate.

        When I set the font, exit, and reload, it saves the font.

        08a1bd06-0e10-49fe-b23f-024a23826712-image.png

        Don’t forget to go back to Default style, not the Global override when you re-open Notepad++ to verify whether it stuck.

        My best guess is that you are having write permission issues on stylers.xml. To point you to the right location for that file, you’d have to give us the Debug Info (? menu’s Debug Info entry – shown in my screenshot, but you can just copy the text and paste it here if you want). But it’s probably %AppData%\Notepad++\stylers.xml : if you verify your Debug Info says “Local conf mode: OFF”, and if you don’t have Cloud settings turned on, then that will be the location. If that’s the case, open Windows Explorer, and paste in %AppData%\Notepad++\ and make sure that you have write permission to all the files in there.

        J 1 Reply Last reply Reply Quote 1
        • J
          jmwjy @PeterJones
          last edited by

          @PeterJones
          Hello, I am using the portable.x64 version of Notepad++. I have extracted the downloaded file “npp. 8.7.9. portable.x64.7z” into the NPP folder on drive D (D: \ NPP).
          And set the permissions for the D: \ NPP folder and its files to ‘everyone has full control’.
          I want to set the font to: FiraCode-Light.ttf, But I found that it couldn’t take effect no matter what - including setting both Default style and Global override at the same time.
          May I ask where I made the mistake in setting it up?

          fontStyle.jpg

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

            @jmwjy ,

            The issue four years ago was that the change wasn’t being saved, which is why my debug hints were focused on permissions. Yours is that you aren’t seeing the font change at all, even though it’s been updated.

            First, you do not need to use the Global Override. Turn that all back off.

            My guess is that it’s because you’ve chosen “Fira Code Light”. If you choose “Fira Code” or “Consolas” as the Default font (not the Global Override), does it show up? If so, then you might want to read this post and what it links to: essentially, depending on what your DirectWrite mode is set to in the MISC settings, it can change whether or not Notepad++ can display fonts with “Light” or “SemiBold” or similar in the name; since you are in v8.7.9, you should have 5 different DirectWrite choices – my guess is that GDI (most compatible) is the one that will work for you and “Fira Code Light”, based on what was said in the other discussion.

            mkupperM J 2 Replies Last reply Reply Quote 3
            • mkupperM
              mkupper @PeterJones
              last edited by

              @PeterJones, I noticed in @jmwjy’s screen shot that npp is being run in Administrator mode though don’t know if that’s relevant.

              J 1 Reply Last reply Reply Quote 0
              • J
                jmwjy @PeterJones
                last edited by

                @PeterJones
                This is simply amazing!
                As you said, as long as I set it to “Settings>Preference>MISC>rendering mode=GDI (most compatible)”, all font display issues will be solved!
                In addition, I would like to reply to your two conjectures - both of which are correct: I have chosen these two fonts: Fira Code, Consolas, and Notepad++can all be displayed normally! But switching to ‘Fira Code Light’ won’t display properly!

                You know what? This is crazy: I am Chinese, and this is the first time that I feel the help from foreign friends and solve the problems that have puzzled me for a long time!

                A Chinese song for you: You are electricity, you are light, you are my only myth
                【SUPER STAR - S.H.E】

                1 Reply Last reply Reply Quote 2
                • J
                  jmwjy @mkupper
                  last edited by

                  @mkupper
                  My issue has been resolved and is not related to the advanced administrator mode.

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