I need to know which of my fonts contain a particular character. There seems to be no simple way to do that. "Search for a character in all fonts" would be a VERY useful feature in MainType! And easy to implement too, I'd think.
Example:
Input: "Prescription Take" (or Unicode 211E)
Output: list of all my fonts which contain that character.
Thanks in advance!
-Joe-
Search for a character in all fonts
-
- Top Typographer
- Posts: 9875
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Search for a character in all fonts
There is a way to quickly tell if a font has the required symbol — paste some text using the Prescription Take symbol ℞℞℞ in the preview text field.
Edit: Unfortunately, that doesn't seem to work for all character sets.
In the screen shot below, I have typed the Pāli word "Satipaṭṭhāna" and can see which fonts are missing the ṭ dot below.
Edit: Unfortunately, that doesn't seem to work for all character sets.
In the screen shot below, I have typed the Pāli word "Satipaṭṭhāna" and can see which fonts are missing the ṭ dot below.
-
- Posts: 694
- Joined: Mon Dec 07, 2009 10:26 am
- Location: De Bilt, Netherlands
- Contact:
Re: Search for a character in all fonts
Unfortunately this is not easy to implement. MainType currently only stores the number of characters found in a font, not which characters. If a search like this would have to be performed it would have to physically go through each font which would make it very very slow. The solution that Bhikkhu Pesala provided is currently the only way to go.joehorn wrote:I need to know which of my fonts contain a particular character. There seems to be no simple way to do that. "Search for a character in all fonts" would be a VERY useful feature in MainType! And easy to implement too, I'd think.
León
-
- Top Typographer
- Posts: 9875
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Search for a character in all fonts
Any reason why it doesn't work with Letterlike Symbols? Prescription Take (Px) is in that character set.León Fridsma wrote:The solution that Bhikkhu Pesala provided is currently the only way to go.
-
- Moderator
- Posts: 11151
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Search for a character in all fonts
It works just fine on my PC running Windows 7.
-
- Top Typographer
- Posts: 9875
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Search for a character in all fonts
That's good. If it only affects Windows XP I guess its not a big issue. I am sure that my own fonts all contain that symbol, but they're showing up as just rectangles. I tried various character sets, all of which showed up in the Samples Pane, but most didn't work in the Preview Text field.
-
- Moderator
- Posts: 11151
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Search for a character in all fonts
As long as the text is not "red" it does indicate the characters are available. We are aware Windows XP has certain limits related to drawing Unicode text, but we decided to move forward, as users of more recent versions of Windows do actually benefit the new Windows APIs.