On Mon, 16 May 2011, Eljay Love-Jensen wrote:
The Unicode font I am using for Vim works great. Except...
I would like to use a private use area (PUA) alternative glyph for
"zero", which has a slash through it.
I would like to use a private use area (PUA, non-BMP) alternative
glyph for "asterisk", which looks better for coding.
Is there an easy way to do that character-to-glyph mapping within Vim
itself?
You'll save yourself a ton of trouble by simply modifying your font.
Unless you want to mix the 0/Ø characters and */* characters within the
same document with the intent that they have different meanings, what
you're describing is a problem for a font to handle. Otherwise at some
point you'll inevitably slip up and loose these PUA characters on
someone unsuspecting (where "someone" might well be "you" running the
file through a program that doesn't understand your PUA chars). If the
character has the same semantics as "asterisk", represent it with the
codepoint for "asterisk".
I realize that one likely viable alternative is to get a font editor
and rework it so the glyphs I prefer are the ones in the associated
mapping. But I don't have a good OpenType font editor at the moment.
What you're describing doesn't sound like it'd require even a "good"
OpenType editor. Try Fontforge ( fontforge.sf.net ) -- not that it's
bad -- just came to mind since it's freely available, and I'm sure it
can do what you're trying to do to an OpenType font.
And I have not check the font license, which may prohibit such
modification for personal use.
<rant>
Anything that prohibits modification for personal use is ridiculously
naïve, and shouldn't be supported financially or even implicitly (by
using it).
</rant>
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php