Quote:
Originally Posted by Hitch
Having read this, sweetie, I can't quite decide between kissing you and smacking you in the kisser. Old people, my nearly-geriatric butt! Although, ahem, I do have to say, the "old people" one is mo' bettah.
|
I knew you would like it. As with anything in TeX, the font size can easily be tweaked (or the margins, or the amount of columns, or the paper size, or portrait/landscape, etc. etc.).
Quote:
Originally Posted by Hitch
This is rather brill, although my brain still shies away from the idea of creating a glyph map for...what, 1400 fonts? Yikes. Hmmmm...I wonder if I could run something like that in a batch process?
|
I am not too familiar with batch files (really something I should learn after all these years)... I would probably just do it highly inefficiently and brute force it and feed a list of fonts into a little program to generate a new .tex file for every font (and the different font faces?). :P
To change the font, all that has to change in the .tex file is this little line:
Code:
\setmainfont{Times New Roman}
You just change "Times New Roman" into whatever font name (Arial, Charis SIL, Gentium Plus, [...]).
If you want to generate the glyph map for Bold/Italic/BoldItalic, you would then have to change this line:
Code:
\symbol{\i}\endgraf
Bold:
Code:
\textbf{\symbol{\i}\endgraf}
Italic:
Code:
\textit{\symbol{\i}\endgraf}
BoldItalic:
Code:
\textbf{\textit{\symbol{\i}\endgraf}}
Quote:
Originally Posted by Hitch
Thanks, Tex. It's excellent to know this. And of course, I mooched your Glyph maps. 
|
So last night I stumbled across a few hiccups.
Hiccup #1: A few of the fonts weren't working (Wingdings/Wingdings 2/Webdings/a few others). I believe the fonts have to be Unicode aware (?) so the previous method would just generate a blank PDF. That lead me to this:
https://tex.stackexchange.com/questi...ont-in-xelatex
So I generated a few of glyph maps for those fonts (they are ugly, but they show all the glyphs).
I stuck them in a zip file:
- Webdings/Wingdings/Wingdings 2/Wingdings 3
With your ten thousand different fonts, there are probably bound to be some that just won't show up using the previous Unicode method. As you stumble across them, we could probably go hunting around for different solutions (or maybe the above one works). :P
Hiccup #2: I was messing around last night on file-format.info, and I saw that "Segoe UI Symbol" font had quite a few more symbols higher up in Unicode. Turns out U+FFFF isn't high enough.
This line in the .tex file had to change:
Code:
\multido{\i=0+1}{"10000}{% from U+0000 to U+FFFF
I am not 100% sure what this loop does (I thought I understood it, but in the end I was baffled). From some simple testing though, I changed it to:
Code:
\multido{\i=0+1}{"50000}{
This seems to cause it to go far beyond U+FFFF, and get all of the other Unicode blocks (Emoticons, Mathematical Alphanumeric Symbols, CJK, [...]).
- BabelStone Han[Expanded]
- I used this font as a test for the really high Unicode positions.
- Cambria Math[Expanded]
- Charis SIL[Expanded]
- DejaVu Sans[Expanded]
- Gentium Plus[Expanded]
- Segoe UI Symbol[Expanded]
Hiccup #3: I have no idea about showing alternative glyphs and all of that fancier OpenType stuff.