mask out cjk punctuation

This commit is contained in:
Caolán McNamara 2011-03-09 20:52:07 +00:00
parent bc001176b4
commit c0997a4383

View file

@ -1539,12 +1539,14 @@ namespace
aGenericMask.set(vcl::UnicodeCoverage::SPECIALS, false);
aGenericMask.set(vcl::UnicodeCoverage::NONPLANE_0, false);
aGenericMask.set(vcl::UnicodeCoverage::PRIVATE_USE_PLANE_15, false);
aGenericMask.set(vcl::UnicodeCoverage::CJK_SYMBOLS_AND_PUNCTUATION, false);
boost::dynamic_bitset<sal_uInt32> aMasked = rFontCapabilities.maUnicodeRange & aGenericMask;
if (aMasked.count() == 1)
return aMasked.find_first();
if (aMasked[vcl::UnicodeCoverage::ARABIC])
{
aMasked.set(vcl::UnicodeCoverage::ARABIC_PRESENTATION_FORMS_A, false);