ctfonts.cxx (e89c3263) | ctfonts.cxx (56b8eddc) |
---|---|
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 --- 560 unchanged lines hidden (view full) --- 569// ======================================================================= 570 571#ifndef DISABLE_CORETEXT_DYNLOAD 572 573DynCoreTextSyms::DynCoreTextSyms( void ) 574{ 575 mbIsActive = false; 576 | 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 --- 560 unchanged lines hidden (view full) --- 569// ======================================================================= 570 571#ifndef DISABLE_CORETEXT_DYNLOAD 572 573DynCoreTextSyms::DynCoreTextSyms( void ) 574{ 575 mbIsActive = false; 576 |
577 // check if CoreText has been explicitely disabled | 577 // check if CoreText has been explicitly disabled |
578 const char* pEnvStr = getenv( "SAL_DISABLE_CORETEXT"); 579 if( pEnvStr && (pEnvStr[0] != '0') ) 580 return; 581 582 // check CoreText version 583 GetCoreTextVersion = (uint32_t(*)(void))dlsym( RTLD_DEFAULT, "CTGetCoreTextVersion"); 584 if( !GetCoreTextVersion) return; 585 --- 73 unchanged lines hidden --- | 578 const char* pEnvStr = getenv( "SAL_DISABLE_CORETEXT"); 579 if( pEnvStr && (pEnvStr[0] != '0') ) 580 return; 581 582 // check CoreText version 583 GetCoreTextVersion = (uint32_t(*)(void))dlsym( RTLD_DEFAULT, "CTGetCoreTextVersion"); 584 if( !GetCoreTextVersion) return; 585 --- 73 unchanged lines hidden --- |