Bug 517283: fix gfxCoreTextFontGroup and bidi reftests to resolve failures with the Core Text backend, r=roc

This commit is contained in:
Jonathan Kew 2009-09-18 09:20:01 +01:00
Родитель ff2a1c490b
Коммит e94a16a6f9
4 изменённых файлов: 14 добавлений и 7 удалений

Просмотреть файл

@ -1133,12 +1133,13 @@ gfxCoreTextFontGroup::SetGlyphsFromRun(gfxTextRun *aTextRun,
}
// Then we check if the clump falls outside our actual string range; if so, just go to the next.
if (baseCharIndex < aLayoutStart || baseCharIndex >= aLayoutStart + aLayoutLength) {
if (endCharIndex <= aLayoutStart || baseCharIndex >= aLayoutStart + aLayoutLength) {
glyphStart = glyphEnd;
charStart = charEnd;
continue;
}
// Ensure we won't try to go beyond the valid length of the textRun's text
baseCharIndex = PR_MAX(baseCharIndex, aLayoutStart);
endCharIndex = PR_MIN(endCharIndex, aLayoutStart + aLayoutLength);
// for missing glyphs, we already recorded the info in the textRun

Просмотреть файл

@ -4,8 +4,10 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-family: serif;
body { /* for Mac OS X with Core Text, we need to ensure an AAT (not OpenType)
font is used for the Arabic, as CT doesn't shape LTR-override Arabic
correctly (rdar://7231250 */
font-family: Geeza Pro, serif;
font-size: 24px;
text-align: justify;
}

Просмотреть файл

@ -4,8 +4,10 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-family: serif;
body { /* for Mac OS X with Core Text, we need to ensure an AAT (not OpenType)
font is used for the Arabic, as CT doesn't shape LTR-override Arabic
correctly (rdar://7231250 */
font-family: Geeza Pro, serif;
font-size: 24px;
}
</style>

Просмотреть файл

@ -4,8 +4,10 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body {
font-family: serif;
body { /* for Mac OS X with Core Text, we need to ensure an AAT (not OpenType)
font is used for the Arabic, as CT doesn't shape LTR-override Arabic
correctly (rdar://7231250 */
font-family: Geeza Pro, serif;
font-size: 24px;
}
</style>