Bug 1331339 - Don't start a new script run when the current script appears in the next character's ScriptExtensions property, or next char is a cluster-extender. r=jrmuizel
This commit is contained in:
@@ -105,6 +105,12 @@ GetScriptCode(uint32_t aCh)
|
||||
return Script(uscript_getScript(aCh, &err));
|
||||
}
|
||||
|
||||
inline bool
|
||||
HasScript(uint32_t aCh, Script aScript)
|
||||
{
|
||||
return uscript_hasScript(aCh, UScriptCode(aScript));
|
||||
}
|
||||
|
||||
inline uint32_t
|
||||
GetScriptTagForCode(Script aScriptCode)
|
||||
{
|
||||
@@ -189,6 +195,16 @@ uint8_t GetLineBreakClass(uint32_t aCh);
|
||||
|
||||
Script GetScriptCode(uint32_t aCh);
|
||||
|
||||
// We don't support ScriptExtensions.txt data when building without ICU.
|
||||
// The most important cases will still be handled in gfxScriptItemizer
|
||||
// by checking IsClusterExtender to avoid breaking script runs within
|
||||
// a cluster.
|
||||
inline bool
|
||||
HasScript(uint32_t aCh, Script aScript)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t GetScriptTagForCode(Script aScriptCode);
|
||||
|
||||
PairedBracketType GetPairedBracketType(uint32_t aCh);
|
||||
|
||||
Reference in New Issue
Block a user