• Login
Community
  • Login

Font Linking to display glyphs not in font

Scheduled Pinned Locked Moved General Discussion
14 Posts 6 Posters 1.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.
  • R
    Richard J Otter
    last edited by Dec 11, 2022, 7:03 PM

    I do a lot of work transcribing German grave stones which use a latin cross symbol to indicate death date.

    When I type the character, it displays differently in NotePad (v11.2210.5.0) and NotePad++ (v8.4.7)

    In both apps, the default font is set to Consolas.
    I’m pretty sure that the cross character is not in the Consolas font, so there must be “font linking” going on.
    In NotePad, I see what I want, a simple, 2 black line on white background symbol that has the same mono spacing as other characters.
    In NotePad++, I get a glyph with a purple background and white symbol within, and the width is larger than other characters (causing alignment issues for me.)
    Any idea how I can change what NotePad++ is displaying?

    For reference-
    ✝︎ U+271D Latin Cross https://www.compart.com/en/unicode/

    T A R A 4 Replies Last reply Dec 11, 2022, 7:16 PM Reply Quote 0
    • T
      Terry R @Richard J Otter
      last edited by Dec 11, 2022, 7:16 PM

      @Richard-J-Otter said in Font Linking to display glyphs not in font:

      Any idea how I can change what NotePad++ is displaying?

      Sorry I can’t help, well not exactly. All I can suggest is to look at this recent post here. Also search for other posts, there are lots with similar problems.

      Beyond that it is probably just a matter of trial and error to find a suitable font to display what you need.

      Terry

      R 1 Reply Last reply Dec 11, 2022, 11:19 PM Reply Quote 0
      • A
        Alan Kilborn @Richard J Otter
        last edited by Dec 11, 2022, 7:36 PM

        @Richard-J-Otter

        Have you tried direct-write on, as mentioned HERE?

        R R 2 Replies Last reply Dec 11, 2022, 11:16 PM Reply Quote 0
        • R
          Richard J Otter @Alan Kilborn
          last edited by Dec 11, 2022, 11:16 PM

          @Alan-Kilborn
          Yes. I am using it. No change in behavior I can see.

          R 1 Reply Last reply Dec 12, 2022, 4:38 PM Reply Quote 0
          • R
            Richard J Otter @Terry R
            last edited by Richard J Otter Dec 11, 2022, 11:21 PM Dec 11, 2022, 11:19 PM

            @Terry-R
            Thanks for the link. I didn’t find it in my search.
            The posts there are saying use a font that has the character you want so it doesn’t display the rectangle char. I’m way past that.
            Notepad++ is already doing the font-linking or setting the fall-back font so it finds the character, just not in the font I want.
            NotePad is doing it just fine.
            Oddly, I just check how Chrome does- in this forum, the purple version is displayed, in the google.com search bar, its the glyph I want.

            1 Reply Last reply Reply Quote 0
            • R
              rdipardo @Alan Kilborn
              last edited by Dec 12, 2022, 2:35 AM

              Have you tried direct-write on . . . ?

              In this particular case, a better recourse may be disabling DirectWrite. At least the filled background disappears without it.

              The GIF below uses the SciTE text editor for demonstration (since modified settings have immediate effect); Notepad++ uses the same editing component and should behave identically, mutatis mutandis:

              wscite-532-no-fill-sans-D2D.gif

              R 1 Reply Last reply Dec 16, 2022, 7:17 PM Reply Quote 0
              • R
                rdipardo @Richard J Otter
                last edited by rdipardo Dec 12, 2022, 3:35 AM Dec 12, 2022, 3:34 AM

                @Richard-J-Otter,

                In both apps, the default font is set to Consolas.

                Try DéjaVu Sans Mono:

                DejaVu-Sans-Mono.png

                Don’t forget to also turn off DirectWrite.

                R 1 Reply Last reply Dec 12, 2022, 4:08 AM Reply Quote 0
                • R
                  rdipardo @rdipardo
                  last edited by Dec 12, 2022, 4:08 AM

                  @me,

                  Don’t forget to also turn off DirectWrite.

                  On a second look, it seems DirectWrite has no effect on DejaVu Sans Mono (maybe because it’s open source? ). By contrast, every Microsoft font displays the “emoji” style with D2D switched on. It’s most likely a quirk in Scintilla (the editing component).

                  1 Reply Last reply Reply Quote 0
                  • A
                    astewart77 @Richard J Otter
                    last edited by Dec 12, 2022, 4:56 AM

                    @Richard-J-Otter said in Font Linking to display glyphs not in font:

                    In both apps, the default font is set to Consolas.
                    I’m pretty sure that the cross character is not in the Consolas font, so there must be “font linking” going on.

                    I use the Source Code Pro font in Notepad++ and it also does not have the cross character. I do have Font Linking set up for that font. I’m running Win 7 and my registry has font linking for many fonts already set up at:

                    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
                    

                    For Source Code Pro I have the REG_MULTI_SZ value:

                    DejaVuSansMono.ttf,DejaVu Sans Mono
                    cour.ttf,Courier New
                    MSGOTHIC.TTC,MS Gothic
                    GULIM.TTC,DotumChe
                    Symbola_Hinted.ttf,Symbola
                    
                    

                    This displays almost every language set and many symbols I have come across in Notepad++, with the caveat that some characters sets won’t align as monospaced, and the registry order may affect which font a given character is actually taken from.

                    Notepad apparently uses Windows Font Fallback internally, whereas Notepad++ doesn’t. Font Linking happens outside of Notepad++, so it doesn’t need to know. I think…

                    I don’t know if these FontLink entries exist beyond Win 7.

                    R 1 Reply Last reply Dec 12, 2022, 4:41 PM Reply Quote 0
                    • R
                      Richard J Otter @Richard J Otter
                      last edited by Dec 12, 2022, 4:38 PM

                      @Richard-J-Otter
                      Actually, the behavior is different-(I’ve used that setting for quite awhile.) Turning it off gives me the a different glyph, still not the one notepad is displaying, but at least it’s not purple !
                      Still has the spacing issue, but sort of an improvement.

                      1 Reply Last reply Reply Quote 0
                      • R
                        Richard J Otter @astewart77
                        last edited by Dec 12, 2022, 4:41 PM

                        @astewart77 My understanding was that those registry settings were deprecated in later Windows versions. But the whole area seems badly documented in MS literature.

                        A 1 Reply Last reply Dec 16, 2022, 9:23 PM Reply Quote 0
                        • R
                          Richard J Otter @rdipardo
                          last edited by Richard J Otter Dec 16, 2022, 7:17 PM Dec 16, 2022, 7:17 PM

                          @rdipardo Thanks for testing this.
                          I was going to install SciTE myself, but you saved me the trouble.
                          I also noticed turning off DirectWrite makes the character look better. But my guess is that the same font is being used to display the character.
                          Now the question remaining is how to change that fall-back font.

                          P 1 Reply Last reply Dec 16, 2022, 8:01 PM Reply Quote 0
                          • P
                            PeterJones @Richard J Otter
                            last edited by PeterJones Dec 16, 2022, 8:07 PM Dec 16, 2022, 8:01 PM

                            @Richard-J-Otter said in Font Linking to display glyphs not in font:

                            Now the question remaining is how to change that fall-back font.

                            We are not necessarily Windows OS experts, because this is a Notepad++ forum, not a forum of super users of Windows OS. However, this discussion from July might give some insight into how to edit fallbacks (or, since it’s single glyphs in the font, “font linking”). You might also want to see this discussion from 2019 and this from 2018 which talk about the c:\windows\fonts\*.CompositeFont files (though those 2018-2019 discussions may make outdated claims about Notepad++)

                            1 Reply Last reply Reply Quote 1
                            • A
                              astewart77 @Richard J Otter
                              last edited by Dec 16, 2022, 9:23 PM

                              @Richard-J-Otter said in Font Linking to display glyphs not in font:

                              @astewart77 My understanding was that those registry settings were deprecated in later Windows versions. But the whole area seems badly documented in MS literature.

                              Here is a fresher link , dated Nov 2022, to a MS doc page for font fallback / fontlink. No mention of deprecation.

                              I have seen instructions on Google successful in Windows 10. On the other hand, this github bug report for Notepad++ says it stopped working after a Windows 11 release, for certain conditions. Apparently, it was still working in Windows 11 prior to that.

                              Using something that’s deprecated doesn’t make you a bad person. If your registry has font linking enabled, there will already be some entries there. No harm in adding an entry.

                              1 Reply Last reply Reply Quote 0
                              • T Terry R referenced this topic on Jun 13, 2023, 3:37 AM
                              9 out of 14
                              • First post
                                9/14
                                Last post
                              The Community of users of the Notepad++ text editor.
                              Powered by NodeBB | Contributors