зеркало из https://github.com/mozilla/gecko-dev.git
Bug 517283: fix gfxCoreTextFontGroup and bidi reftests to resolve failures with the Core Text backend, r=roc
This commit is contained in:
Родитель
ff2a1c490b
Коммит
e94a16a6f9
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче