+2008-01-06 Nikolas Zimmermann <zimmermann@kde.org>
+
+ Reviewed by Dan.
+
+ Add new helper function isArabicChar - SVG Fonts support needs it.
+
+ * wtf/unicode/icu/UnicodeIcu.h:
+ (WTF::Unicode::isArabicChar):
+ * wtf/unicode/qt4/UnicodeQt4.h:
+ (WTF::Unicode::isArabicChar):
+
2008-01-06 Alp Toker <alp@atoker.com>
Reviewed by Mark Rowe.
return u_totitle(c);
}
+ inline bool isArabicChar(UChar32 c)
+ {
+ return ublock_getCode(c) == UBLOCK_ARABIC;
+ }
+
inline bool isFormatChar(UChar32 c)
{
return u_charType(c) == U_FORMAT_CHAR;
return QChar::category(c) == QChar::Other_Format;
}
+ inline bool isArabicChar(UChar32 c)
+ {
+ return c >= 0x0600 && c <= 0x06FF;
+ }
+
inline bool isPrintableChar(UChar32 c)
{
const uint test = U_MASK(QChar::Other_Control) |
return (c & 0xffff0000) == 0 && QChar((unsigned short)c).isPrint();
}
+ inline bool isArabicChar(UChar32 c)
+ {
+ return c >= 0x0600 && c <= 0x06FF;
+ }
+
inline bool isSeparatorSpace(UChar32 c)
{
return (c & 0xffff0000) == 0 && QChar((unsigned short)c).category() == QChar::Separator_Space;
+2008-01-06 Nikolas Zimmermann <zimmermann@kde.org>
+
+ Reviewed by Dan.
+
+ Use new helper function isArabicChar() - which also calls ublock_getCode() == UBLOCK_ARABIC on mac.
+
+ * platform/graphics/mac/FontMac.mm:
+ (WebCore::ATSULayoutParameters::initialize):
+
2008-01-06 Andrew Wellington <proton@wiretapped.net>
Reviewed by Darin.
else
break;
}
- if (!shapedArabic && ublock_getCode(m_run[i]) == UBLOCK_ARABIC && !r->shapesArabic()) {
+ if (!shapedArabic && WTF::Unicode::isArabicChar(m_run[i]) && !r->shapesArabic()) {
shapedArabic = true;
if (!m_charBuffer) {
m_charBuffer = new UChar[runLength];