Individual fonts to a file name

Features wanted...
Post Reply
PapaiMark
Posts: 8
Joined: 28 Nov 2024 22:01

Individual fonts to a file name

Post by PapaiMark »

I received a file with a weird decorated and bold font.
Searching the net, nothing.
I discovered that using charmap it is possible (win10) to name a file even with the most unexpected fonts and symbols.
Colorize fonts, background, age, etc. Why not change the fonts itself, like
using a different font to name specific words like "setup" or changing the font for .lnk files, etc.
Just an idea.
1.jpg
1.jpg (31.66 KiB) Viewed 4287 times

admin
Site Admin
Posts: 63404
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Individual fonts to a file name

Post by admin »

Interesting. Could you attach such a file (zipped) to a post here?

Garonne
Posts: 182
Joined: 21 Apr 2015 19:10
Location: Germany
Contact:

Re: Individual fonts to a file name

Post by Garonne »

Well... Stuff like colouring parts of filenames (differing from changing the entire filename, we already can do that; based on RegEx, mostly) would be intriguing to me, too.

Not sure about different fonts, though.

PapaiMark
Posts: 8
Joined: 28 Nov 2024 22:01

Re: Individual fonts to a file name

Post by PapaiMark »

admin wrote: 31 Jan 2025 20:30 Interesting. Could you attach such a file (zipped) to a post here?
Sorry, the file is gone.
I myself could insert symbols, but couldn't change the font itself.
Maybe, who did it, modified a normal Windows font by changing the symbols to a draw of letters. It would be a wearisome job.
I remember that something like this was possible with the ancient Windows 98, typing right Alt + number pad numbers.

I really don't know how, but he (?) did it.

Using the font "Segoe MDL2 Assets" Unicode, all letters change to weird symbols.
He (?) modified this one? I don't know.
Attachments
¹شßњ⓴Ð◆.zip
(251 Bytes) Downloaded 51 times

admin
Site Admin
Posts: 63404
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Individual fonts to a file name

Post by admin »

These are just Unicode characters of one font. No font change involved. Nothing new.

PapaiMark
Posts: 8
Joined: 28 Nov 2024 22:01

Re: Individual fonts to a file name

Post by PapaiMark »

AHA! I found it in the internet.
I don't know how they do it.
𝕿𝖍𝖎𝖘 𝖎𝖘 𝖆 𝖋𝖔𝖓𝖙
File zipped and attached (0 bytes)
from
lingojam.com/TextFonts

There are some problems. Not all the text editors shows this font. Some shows ?????????????.txt
Seems that the forum considered the zip file with this font an "http error"
11.jpg
11.jpg (105.63 KiB) Viewed 4153 times
Attachments
Flile.zip
(236 Bytes) Downloaded 53 times

kiwichick
Posts: 623
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: Individual fonts to a file name

Post by kiwichick »

PapaiMark wrote: 06 Feb 2025 22:40 Not all the text editors shows this font. Some shows ?????????????.txt
Who would've thought it was even possible to use fonts other than the system-defined one? I downloaded the file to see what happens. In Windows Notepad and Wordpad, the title bar shows the font. In Notepad++, the title bar shows ???????????.txt but the file tab shows the font.

2025-02-07_121044.png
2025-02-07_121044.png (21.64 KiB) Viewed 4145 times
Windows 10 Pro 22H2

admin
Site Admin
Posts: 63404
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Individual fonts to a file name

Post by admin »

The XY character table tells you something about it:

Code: Select all

  #  char	  dec   hex   utf8   utf8hex       remark

  1      	55349  D835                        High Surrogate
      𝕿  	56703  DD7F   𝕿   F0 9D 95 BF   Low Surrogate
  2      	55349  D835                        High Surrogate
      𝖍  	56717  DD8D   𝖍   F0 9D 96 8D   Low Surrogate
  3      	55349  D835                        High Surrogate
      𝖎  	56718  DD8E   𝖎   F0 9D 96 8E   Low Surrogate
  4      	55349  D835                        High Surrogate
      𝖘  	56728  DD98   𝖘   F0 9D 96 98   Low Surrogate
  5      	   32    20          20            
  6      	55349  D835                        High Surrogate
      𝖎  	56718  DD8E   𝖎   F0 9D 96 8E   Low Surrogate
  7      	55349  D835                        High Surrogate
      𝖘  	56728  DD98   𝖘   F0 9D 96 98   Low Surrogate
  8      	   32    20          20            
  9      	55349  D835                        High Surrogate
      𝖆  	56710  DD86   𝖆   F0 9D 96 86   Low Surrogate
 10      	   32    20          20            
 11      	55349  D835                        High Surrogate
      𝖋  	56715  DD8B   𝖋   F0 9D 96 8B   Low Surrogate
 12      	55349  D835                        High Surrogate
      𝖔  	56724  DD94   𝖔   F0 9D 96 94   Low Surrogate
 13      	55349  D835                        High Surrogate
      𝖓  	56723  DD93   𝖓   F0 9D 96 93   Low Surrogate
 14      	55349  D835                        High Surrogate
      𝖙  	56729  DD99   𝖙   F0 9D 96 99   Low Surrogate
So, these characters are extensions of the 16-bit Unicode set. It's not a different font, but fixed characters in the extended set.

PeterH
Posts: 2811
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Individual fonts to a file name

Post by PeterH »

Win11 Pro 23H2 Gerrman

PeterH
Posts: 2811
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Individual fonts to a file name

Post by PeterH »

OK: other view, but fiits here in the moment

XY seems to work well with such characters on fiilenames, text, etc.
But it badly fails with scripting...

Here XY interprets characters as 2-bytes. In real they are UTF-16, i.e *most* used chars can be expressed by 2 bytes, but much seldom used chars are 2*(2Bytes)! And '𝕿' is one of those...
The "directest" interfaces here are asc() and chr() - both don't understand this. (asc() i.e uses the number modulo x'10000'), chr() seems to only interpret the first 2 bytes.
(OK: there are more problems like substring: '𝕿' is 1 char, but 2*2bytes - at least it must be defined what happens...)

By the way: the name asc is very out of time: ascii is *only* 7-Bit! 8bit is something like ansi - language-dependent. Unicode is the full representation of 3 bytes (U+0000 - U+10FFFF), WIN-internal is UTF-16.

OK Don - what's to expect with these problems?

EDIT: correct definition of unicode
Win11 Pro 23H2 Gerrman

admin
Site Admin
Posts: 63404
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Individual fonts to a file name

Post by admin »

chr() will work in next beta. The rest after TB.

PeterH
Posts: 2811
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Individual fonts to a file name

Post by PeterH »

OK: saw your enhancement of chr(): very helpful :tup: :appl: :D
Especially that you can directly set the U+nnnn as chr(0xnnnn)! I.e. in this means we don't see the rules of UTF-16!

Now *every* try of asc() on such a "char" must fail - it will interpret the high surrogate as a full character.
As chr() defines that it will work on (only) one char, you could enhance it: test 2 bytes for a high surrogate, and if it is interpret 2*2 bytes (i.e. high and low surrogate) as a char.
1) yes: easy said
2) *can* be wrong - but not doing it *must* be wrong

I agree: strlen(), substr(), etc should wait...
... as you often said: needs more thinking!
Win11 Pro 23H2 Gerrman

admin
Site Admin
Posts: 63404
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Individual fonts to a file name

Post by admin »

I had to do it, because there were old bugs in asc(). Next beta. :cup:

PeterH
Posts: 2811
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Individual fonts to a file name

Post by PeterH »

Had a look at the curr beta :shock:
More than I thought I could ask for :party: :tup: :beer:

(Maybe I should have asked some years ago, when I played with some exotic codepoints...
I love to use these as separators for lists of tokens: no risk a token contains them :tup: )
Win11 Pro 23H2 Gerrman

Post Reply