Added case for OpCode_BaseFontName. This opcode in spec but practically unused. Added a comment for default case which can't be hit
This commit is contained in:
parent
1abd4fcaec
commit
4d809696ef
@ -656,7 +656,7 @@ struct NameDictValues
|
|||||||
static inline enum NameDictValIndex name_op_to_index (OpCode op)
|
static inline enum NameDictValIndex name_op_to_index (OpCode op)
|
||||||
{
|
{
|
||||||
switch (op) {
|
switch (op) {
|
||||||
default:
|
default: // can't happen - just make some compiler happy
|
||||||
case OpCode_version:
|
case OpCode_version:
|
||||||
return version;
|
return version;
|
||||||
case OpCode_Notice:
|
case OpCode_Notice:
|
||||||
@ -673,6 +673,8 @@ struct NameDictValues
|
|||||||
return postscript;
|
return postscript;
|
||||||
case OpCode_FontName:
|
case OpCode_FontName:
|
||||||
return fontName;
|
return fontName;
|
||||||
|
case OpCode_BaseFontName:
|
||||||
|
return baseFontName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user