cff.cxx (248a599f) cff.cxx (851abcd9)
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

--- 2048 unchanged lines hidden (view full) ---

2057void Type1Emitter::emitValVector( const char* pLineHead, const char* pLineTail,
2058 const ValVector& rVector)
2059{
2060 // ignore empty vectors
2061 if( rVector.empty())
2062 return;
2063
2064 // emit the line head
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

--- 2048 unchanged lines hidden (view full) ---

2057void Type1Emitter::emitValVector( const char* pLineHead, const char* pLineTail,
2058 const ValVector& rVector)
2059{
2060 // ignore empty vectors
2061 if( rVector.empty())
2062 return;
2063
2064 // emit the line head
2065 mpPtr += sprintf( mpPtr, pLineHead);
2065 mpPtr += sprintf( mpPtr, "%s", pLineHead);
2066 // emit the vector values
2067 ValVector::value_type aVal = 0;
2068 for( ValVector::const_iterator it = rVector.begin();;) {
2069 aVal = *it;
2070 if( ++it == rVector.end() )
2071 break;
2072 mpPtr += dbl2str( mpPtr, aVal);
2073 *(mpPtr++) = ' ';
2074 }
2075 // emit the last value
2076 mpPtr += dbl2str( mpPtr, aVal);
2077 // emit the line tail
2066 // emit the vector values
2067 ValVector::value_type aVal = 0;
2068 for( ValVector::const_iterator it = rVector.begin();;) {
2069 aVal = *it;
2070 if( ++it == rVector.end() )
2071 break;
2072 mpPtr += dbl2str( mpPtr, aVal);
2073 *(mpPtr++) = ' ';
2074 }
2075 // emit the last value
2076 mpPtr += dbl2str( mpPtr, aVal);
2077 // emit the line tail
2078 mpPtr += sprintf( mpPtr, pLineTail);
2078 mpPtr += sprintf( mpPtr, "%s", pLineTail);
2079}
2080
2081// --------------------------------------------------------------------
2082
2083bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
2084 const sal_GlyphId* pReqGlyphIds, const U8* pReqEncoding,
2085 GlyphWidth* pGlyphWidths, int nGlyphCount, FontSubsetInfo& rFSInfo)
2086{

--- 331 unchanged lines hidden ---
2079}
2080
2081// --------------------------------------------------------------------
2082
2083bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
2084 const sal_GlyphId* pReqGlyphIds, const U8* pReqEncoding,
2085 GlyphWidth* pGlyphWidths, int nGlyphCount, FontSubsetInfo& rFSInfo)
2086{

--- 331 unchanged lines hidden ---