From: <ai...@us...> - 2010-04-11 15:20:57
|
Revision: 10899 http://plplot.svn.sourceforge.net/plplot/?rev=10899&view=rev Author: airwin Date: 2010-04-11 15:20:51 +0000 (Sun, 11 Apr 2010) Log Message: ----------- Implement HERSHEY_FALLBACK option which replaces Unicode with Hershey glyphs if no unicode alternative is available in the translation table from Hershey index to Unicode index. We normally want this replacement so the default for this option is ON, but turning this option OFF allows our developers to see where our translation table from Hershey to Unicode needs work. Modified Paths: -------------- trunk/src/CMakeLists.txt Modified: trunk/src/CMakeLists.txt =================================================================== --- trunk/src/CMakeLists.txt 2010-04-11 05:05:48 UTC (rev 10898) +++ trunk/src/CMakeLists.txt 2010-04-11 15:20:51 UTC (rev 10899) @@ -65,6 +65,19 @@ PROPERTIES COMPILE_FLAGS "-DUSINGDLL" ) endif(BUILD_SHARED_LIBS) +option(HERSHEY_FALLBACK "Hershey fallback for Unicode fonts" ON) + +if(NOT HERSHEY_FALLBACK) + get_source_file_property(PLSYM_COMPILE_PROPS plsym.c COMPILE_FLAGS) + if(NOT PLSYM_COMPILE_PROPS) + set(PLSYM_COMPILE_PROPS) + endif(NOT PLSYM_COMPILE_PROPS) + set_source_files_properties( + plsym.c + PROPERTIES COMPILE_FLAGS "${PLSYM_COMPILE_PROPS} -DTEST_FOR_MISSING_GLYPHS" + ) +endif(NOT HERSHEY_FALLBACK) + if(ENABLE_DYNDRIVERS) get_source_file_property(PLCORE_COMPILE_PROPS plcore.c COMPILE_FLAGS) # Deal with NOTFOUND case. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |