[SFNT name] Should I use shift-jis instead of mac_roman for some specific attributes?

Hi,

I am wondering if the section a) Mac OS encodings for script code 0, smRoman miss Japanese at: http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt

Same thing here: https://developer.apple.com/documentation/coreservices/1399980-afp_text_encodings

There is no mention about Shift-JIS when the platformID is 1, platEncID is 0 and the langage is 11 : 

I am asking the question because I have this font (I do not own the font. It is purely a demonstration): https://mega.nz/file/S9ERDRpQ#bcPhS06kv-D5jt64aTNDbZVd6gZr6ZfJDYT91yYsoWk

The font has this sfnt name:

    <namerecord nameID="1" platformID="1" platEncID="0" langID="0xb">
      FjÉCÅ[É}310
    </namerecord>

If I use mac_roman to decode this font name (which seems to be the choice when by default), I will not get the right result, but if I use the encoding mac Shift-JIS, I get Fjイーマ310.

If my question is not clear, don't hesitate to get back to me

PS: Sorry, I did not know what I should wrote in the tags section

Fonts are really not my field but I believe that in this context the 11 is a traditional Mac OS language code, corresponding to the langJapanese constant in <CarbonCore/Script.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Sorry for the delay. I did not see any notification about an answer.

Is there any way to contact someone that their field are font?

11 only means the language. It is not related with the encoding character. Yes, we can see that 11 is japanese at Macintosh Language Codes table :https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html

I wanna know which encoding is been used to decode correctly the SFNT name.

Is there any way to contact someone that their field are font?

Try opening a DTS tech support incident. Make sure reference this DevForums thread in your initial request.

ps I’m not sure whether DTS will accept your question — another team within DTS supports graphics-y stuff and I’m not au fait with their policy regarding fonts — but it certainly doesn’t hurt to try.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

From what I can see, I need to pay 119$ to be a member. Since I know that it will be my unique question, I can't afford that.

I am asking this question for fonttools software.

I just want to confirm how we pick up the encoding depending on the name parameter: https://github.com/fonttools/fonttools/blob/21d22ae30f88b76fab5575f5f2e882b142ee1c08/Lib/fontTools/misc/encodingTools.py#L17-L50 In my opinion, the mac documentation lack a little bit of precision about the encoding character.

Thank you eskimo for your help. It is very appreciated.

[SFNT name] Should I use shift-jis instead of mac_roman for some specific attributes?
 
 
Q