cff.cxx (9f62ea84) | cff.cxx (15336cfd) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 2303 unchanged lines hidden (view full) --- 2312 pOut += sprintf( pOut, 2313 "2 index /CharStrings %d dict dup begin\n", nGlyphCount); 2314 rEmitter.emitAllCrypted(); 2315 for( int i = 0; i < nGlyphCount; ++i) { 2316 const int nGlyphId = pReqGlyphIDs[i]; 2317 assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount)); 2318 // get privdict context matching to the glyph 2319 const int nFDSelect = getFDSelect( nGlyphId); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 2303 unchanged lines hidden (view full) --- 2312 pOut += sprintf( pOut, 2313 "2 index /CharStrings %d dict dup begin\n", nGlyphCount); 2314 rEmitter.emitAllCrypted(); 2315 for( int i = 0; i < nGlyphCount; ++i) { 2316 const int nGlyphId = pReqGlyphIDs[i]; 2317 assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount)); 2318 // get privdict context matching to the glyph 2319 const int nFDSelect = getFDSelect( nGlyphId); |
2320 if( nFDSelect < 0) 2321 continue; |
|
2320 mpCffLocal = &maCffLocal[ nFDSelect]; 2321 // convert the Type2op charstring to its Type1op counterpart 2322 const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId); 2323 assert( nT2Len > 0); 2324 U8 aType1Ops[ MAX_T1OPS_SIZE]; // TODO: dynamic allocation 2325 const int nT1Len = convert2Type1Ops( mpCffLocal, mpReadPtr, nT2Len, aType1Ops); 2326 // get the glyph name 2327 const char* pGlyphName = getGlyphName( nGlyphId); --- 87 unchanged lines hidden --- | 2322 mpCffLocal = &maCffLocal[ nFDSelect]; 2323 // convert the Type2op charstring to its Type1op counterpart 2324 const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId); 2325 assert( nT2Len > 0); 2326 U8 aType1Ops[ MAX_T1OPS_SIZE]; // TODO: dynamic allocation 2327 const int nT1Len = convert2Type1Ops( mpCffLocal, mpReadPtr, nT2Len, aType1Ops); 2328 // get the glyph name 2329 const char* pGlyphName = getGlyphName( nGlyphId); --- 87 unchanged lines hidden --- |