mask out cjk punctuation
This commit is contained in:
parent
bc001176b4
commit
c0997a4383
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue