akovia
2015-12-17 18:55:28 UTC
I wrote a script fix some naming errors like leading spaces in names and
such and ran across something I don't understand.
In this instance I have a font with the following PS Names
Fontname   = Abaddon Familyname  = AbaddonTM Fullname   = Abaddonâ¢
The relevant part of the script ...
Print("familyname  = "+"["+fmly+"]") Print("$fullname   =
"+"["+$fullname+"]") Print("fulfixed   = "+"["+fulfixed+"]")
SetFontNames($fontname,fmly,fulfixed) Print("familyname  =
"+"["+fmly+"]") Print("$fullname   = "+"["+$fullname+"]")
Print("fulfixed   = "+"["+fulfixed+"]")
and the result ...
familyname  = [AbaddonTM] $fullname   = [Abaddonâ¢] fulfixed   =
[Abaddonâ¢]
familyname  = [AbaddonTM] $fullname   = [Abaddon"] fulfixed   =
[Abaddonâ¢]
(Output separated for readability and brackets were for identifying
leading and trailing spaces)
So it seems obvious that it is converting the unicode symbol to a double
quote, but is this the intended behavior, or am I doing something wrong?
Personally I'd rather have it removed all together if it can't set it to
the unicode, or at least have a hash table to convert to regular ascii.
Any input would be most appreciated.
--
 akovia
such and ran across something I don't understand.
In this instance I have a font with the following PS Names
Fontname   = Abaddon Familyname  = AbaddonTM Fullname   = Abaddonâ¢
The relevant part of the script ...
Print("familyname  = "+"["+fmly+"]") Print("$fullname   =
"+"["+$fullname+"]") Print("fulfixed   = "+"["+fulfixed+"]")
SetFontNames($fontname,fmly,fulfixed) Print("familyname  =
"+"["+fmly+"]") Print("$fullname   = "+"["+$fullname+"]")
Print("fulfixed   = "+"["+fulfixed+"]")
and the result ...
familyname  = [AbaddonTM] $fullname   = [Abaddonâ¢] fulfixed   =
[Abaddonâ¢]
familyname  = [AbaddonTM] $fullname   = [Abaddon"] fulfixed   =
[Abaddonâ¢]
(Output separated for readability and brackets were for identifying
leading and trailing spaces)
So it seems obvious that it is converting the unicode symbol to a double
quote, but is this the intended behavior, or am I doing something wrong?
Personally I'd rather have it removed all together if it can't set it to
the unicode, or at least have a hash table to convert to regular ascii.
Any input would be most appreciated.
--
 akovia