fontdefs.cxx (b5088357) | fontdefs.cxx (509df7cb) |
---|---|
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 --- 396 unchanged lines hidden (view full) --- 405 i++; 406 } 407 408 // translate normalized localized name to its normalized English ASCII name 409 if( bNeedTranslation ) 410 { 411 typedef std::hash_map<const String, const char*,FontNameHash> FontNameDictionary; 412 static FontNameDictionary aDictionary( sizeof(aImplLocalizedNamesList) / sizeof(*aImplLocalizedNamesList) ); | 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 --- 396 unchanged lines hidden (view full) --- 405 i++; 406 } 407 408 // translate normalized localized name to its normalized English ASCII name 409 if( bNeedTranslation ) 410 { 411 typedef std::hash_map<const String, const char*,FontNameHash> FontNameDictionary; 412 static FontNameDictionary aDictionary( sizeof(aImplLocalizedNamesList) / sizeof(*aImplLocalizedNamesList) ); |
413 // the font name dictionary needs to be intialized once | 413 // the font name dictionary needs to be initialized once |
414 if( aDictionary.empty() ) 415 { 416 // TODO: check if all dictionary entries are already normalized? 417 const ImplLocalizedFontName* pList = aImplLocalizedNamesList; 418 for(; pList->mpEnglishName; ++pList ) 419 aDictionary[ pList->mpLocalizedNames ] = pList->mpEnglishName; 420 } 421 --- 173 unchanged lines hidden --- | 414 if( aDictionary.empty() ) 415 { 416 // TODO: check if all dictionary entries are already normalized? 417 const ImplLocalizedFontName* pList = aImplLocalizedNamesList; 418 for(; pList->mpEnglishName; ++pList ) 419 aDictionary[ pList->mpLocalizedNames ] = pList->mpEnglishName; 420 } 421 --- 173 unchanged lines hidden --- |