merge with cff-subset branch
This commit is contained in:
commit
e0c30b961d
|
@ -247,6 +247,7 @@ struct CFF2CSOpSet : CSOpSet<BlendArg, OPSET, CFF2CSInterpEnv, PARAM, PATH>
|
|||
static inline void process_vsindex (CFF2CSInterpEnv &env, PARAM& param)
|
||||
{
|
||||
env.process_vsindex ();
|
||||
env.clear_args ();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -64,6 +64,8 @@ struct Encoding0 {
|
|||
|
||||
inline hb_codepoint_t get_code (hb_codepoint_t glyph) const
|
||||
{
|
||||
assert (glyph > 0);
|
||||
glyph--;
|
||||
if (glyph < nCodes)
|
||||
{
|
||||
return (hb_codepoint_t)codes[glyph];
|
||||
|
@ -106,6 +108,8 @@ struct Encoding1 {
|
|||
|
||||
inline hb_codepoint_t get_code (hb_codepoint_t glyph) const
|
||||
{
|
||||
assert (glyph > 0);
|
||||
glyph--;
|
||||
for (unsigned int i = 0; i < nRanges; i++)
|
||||
{
|
||||
if (glyph <= ranges[i].nLeft)
|
||||
|
|
|
@ -347,6 +347,7 @@ struct CFF2PrivateDictOpSet : DictOpSet
|
|||
case OpCode_vsindexdict:
|
||||
env.process_vsindex ();
|
||||
dictval.ivs = env.get_ivs ();
|
||||
env.clear_args ();
|
||||
break;
|
||||
case OpCode_blenddict:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue