webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 5 10e98eab6f85
equal deleted inserted replaced
0:dd21522fd290 1:7c90e6132015
   126 
   126 
   127             // if we have non-regular spaces (nbsp, tab, etc.) we need to make a copy
   127             // if we have non-regular spaces (nbsp, tab, etc.) we need to make a copy
   128             // and replace them with regular spaces. otherwise they show up as boxes.
   128             // and replace them with regular spaces. otherwise they show up as boxes.
   129             if (indexOfFirstNonRegularSpace > -1) {
   129             if (indexOfFirstNonRegularSpace > -1) {
   130                 for(; indexOfFirstNonRegularSpace<strLength; ++indexOfFirstNonRegularSpace ) {
   130                 for(; indexOfFirstNonRegularSpace<strLength; ++indexOfFirstNonRegularSpace ) {
   131                     if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() ) {
   131                 	// if ZERO WIDTH SPACE found do not replace it with regular space
       
   132                     if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() && 
       
   133                     	!(Font::treatAsZeroWidthSpace (newStr[indexOfFirstNonRegularSpace]))) {
   132                         newStr[indexOfFirstNonRegularSpace] = ' ';
   134                         newStr[indexOfFirstNonRegularSpace] = ' ';
   133                     }
   135                     }
   134                 }
   136                 }
   135             }
   137             }
   136             
   138