Added case for OpCode_BaseFontName. This opcode in spec but practically unused.
Added a comment for default case which can't be hit
static inline enum NameDictValIndex name_op_to_index (OpCode op)
{
switch (op) {
- default:
+ default: // can't happen - just make some compiler happy
case OpCode_version:
return version;
case OpCode_Notice:
return postscript;
case OpCode_FontName:
return fontName;
- }
+ case OpCode_BaseFontName:
+ return baseFontName;
+ }
}
unsigned int values[ValCount];