Page 1 of 1

Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sun Mar 10, 2019 1:16 pm
by Hafonton
Sometimes I have tons of stylistic sets in my font, and I have to manually add PUA code to them
$E000, $E001, $E002, and so on,
in order for them to work in photoshop and *other softwares:
*reference: https://www.creativefabrica.com/the-ult ... ded-fonts/

Is there a batch function available to do this hard work for me?
Maybe in the Transform Tool,
add this function: Add PUA Unicode Values to Selected Glyphs

Or a function that sets a free PUA code for the uncoded glyphs. (this could go in the validator).
(or set a custom range, if possible)

Any thoughts on this?

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sun Mar 10, 2019 1:35 pm
by Erwin Denissen
You can add a new character range, then use copy and paste special to only paste the codepoints.

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sun Mar 10, 2019 3:03 pm
by Hafonton
Thanks for the quick response Erwin, I really appreciate that.

What you suggested would work yes, but I'd have to re-modify every opentype feature I've ever put in the Opentype Designer... and there's a bunch of them. (ligatures, stylistic sets, contextual alternates logic and so on)

Is there another way without re-doing all of that?

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sun Mar 10, 2019 3:07 pm
by Erwin Denissen
That is exactly what you avoid that way!

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sat Mar 16, 2019 9:17 pm
by Hafonton
Erwin Denissen wrote: Sun Mar 10, 2019 3:07 pm That is exactly what you avoid that way!
Oh.
Okay so I look up to Special Paste - very cool feature indeed!
I was not aware of it.

I did as you said now, made new character range for the Private Use Area code-points (999 of them),
and copied my "unmapped" characters and special-pasted them into the new code-points
but the opentype features didn't move to the new pasted glyphs, it stayed with the old ones (which is not what I need).
Here's a two minute video to demonstrate exactly what I did (and whats written here):
https://youtu.be/PUeS_uymaTU

Any advice?

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Sat Mar 16, 2019 10:32 pm
by Bhikkhu Pesala
Hafonton wrote: Sat Mar 16, 2019 9:17 pmI did as you said now, made new character range for the Private Use Area code-points (999 of them), and copied my "unmapped" characters and special-pasted them into the new code-points but the opentype features didn't move to the new pasted glyphs, it stayed with the old ones (which is not what I need).
I think what was intended was to copy the code-points from the inserted PUA glyphs to your unmapped glyphs, not the other way around. There is an option on the Paste Special dialogue to override existing code-points.

Re: Glyph Names > Add PUA Unicode Values to Selected Glyphs

Posted: Thu Mar 21, 2019 9:49 pm
by Hafonton
Bhikkhu Pesala wrote: Sat Mar 16, 2019 10:32 pm
Hafonton wrote: Sat Mar 16, 2019 9:17 pmI did as you said now, made new character range for the Private Use Area code-points (999 of them), and copied my "unmapped" characters and special-pasted them into the new code-points but the opentype features didn't move to the new pasted glyphs, it stayed with the old ones (which is not what I need).
I think what was intended was to copy the code-points from the inserted PUA glyphs to your unmapped glyphs, not the other way around. There is an option on the Paste Special dialogue to override existing code-points.

Can I give you a virtual hug, mr. genious? :D
Thank youuuu