Community
    • Login

    changing the font

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 399 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.
    • xmaticX
      xmatic
      last edited by xmatic

      After the recent discussion on Hacker News about the “comfy-ness” of the FOSS font “Comic Mono”, I decided to try it out. (Spoiler: it is indeed quite comfy.)

      Below is a screenshot of the what my Style Configurator looks like:

      2024-09-19_134021.jpg

      This seems to work. New files enter text in the Comic Mono typeface by default. And when I open an old text file, it opens in that typeface.

      My Question: What am I missing out on by not having the following checked:

      • Enable global font size
      • Enable global bold font style
      • Enable global italic font style
      • Enable global underline font style
      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @xmatic
        last edited by PeterJones

        @xmatic said in changing the font:

        What am I missing out

        Possibly understanding the nature of plain text. And also you are missing out on some of syntax highlighting by enabling global font.

        Regarding the nature of plain text, since you said, “And when I open an old text file, it opens in that typeface.”, that seemed to imply that you somehow think that font is associated with a particular piece of text or complete file. In a text editor, It’s not. The text editor shows the characters of a text file in whatever font your copy of that editor is configured to use. If you open the exact same file using a different text editor on the same machine, or using Notepad++ on a different machine, it could quite easily be displayed using a different font. The font is not part of the text file, but of the application used to edit/view the text file. (More on that at FAQ: Notepad++ is a Text Editor, not a Word Processor.)

        Regarding syntax highlighting: as soon as you say “enable global font”, then if your theme tries to change the font, it won’t be able to. If you had also tried the “global foreground colour” or “global background colour”, then you would miss out on essentially all of syntax highlighting (showing different colors for different parts of programming language or XML keywords, etc).

        But really, unless you have really good reason, you should never need to use the Global Override style settings. If what you want to do is set the default style – what normal plaintext looks like, font, foreground, background, etc – then you want to go one line down in the Style column to Default Style instead of Global override. There is the right place to set the default font, color, etc.

        Please read the first few paragraphs of the Online User Manual > Preferences > Global Styles section, especially the bullet points on Global override and Default Style

        My best advice: unless you know why you need Global Override, what you really want to use is Default Style.

        Snabel42S 1 Reply Last reply Reply Quote 3
        • Snabel42S
          Snabel42 @PeterJones
          last edited by Snabel42

          @PeterJones do you know if there’s a reason that “Global override” is at the top of the list and is selected by default?

          (For longer than I care to admit, I kept changing the Global override and expecting the default style to change. I eventually realized my mistake, but I’m still puzzled that “Default Style” isn’t at the top and isn’t selected … by default.)

          PeterJonesP 1 Reply Last reply Reply Quote 2
          • PeterJonesP
            PeterJones @Snabel42
            last edited by

            @Snabel42 ,

            I have never seen a reason for the current order – and I just searched the historical repo issues to see if it was ever explained, and couldn’t find a mention of a reason.

            But global overrides have come up often enough recently that I finally took the time to put in a feature request to ask that Default Style be moved before Global override.

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