mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Revert "Revert "Update font-kit and freetype and unicode-script.""
This reverts commit 10ae3bfbbb
.
This commit is contained in:
parent
adb75ba114
commit
420e19f172
6 changed files with 220 additions and 27 deletions
|
@ -29,7 +29,7 @@ use style::properties::ComputedValues;
|
|||
use style::values::generics::text::LineHeight;
|
||||
use style::values::specified::text::{TextTransform, TextTransformCase};
|
||||
use unicode_bidi as bidi;
|
||||
use unicode_script::{get_script, Script};
|
||||
use unicode_script::Script;
|
||||
use xi_unicode::LineBreakLeafIter;
|
||||
|
||||
/// Returns the concatenated text of a list of unscanned text fragments.
|
||||
|
@ -259,7 +259,7 @@ impl TextRunScanner {
|
|||
//
|
||||
// TODO: Special handling of paired punctuation characters.
|
||||
// http://www.unicode.org/reports/tr24/#Common
|
||||
let script = get_script(character);
|
||||
let script = Script::from(character);
|
||||
let compatible_script = is_compatible(script, run_info.script);
|
||||
if compatible_script && !is_specific(run_info.script) && is_specific(script)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue