Revert "Update font-kit and freetype and unicode-script."

This reverts commit 5c0d7998bd.
This commit is contained in:
Josh Matthews 2020-08-04 19:16:05 -04:00
parent c1920357b0
commit 10ae3bfbbb
6 changed files with 28 additions and 221 deletions

View file

@ -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::Script;
use unicode_script::{get_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 = Script::from(character);
let script = get_script(character);
let compatible_script = is_compatible(script, run_info.script);
if compatible_script && !is_specific(run_info.script) && is_specific(script)
{