• Show log

    Commit

  • Hash : 91067716
    Author : David Corbett
    Date : 2017-12-08T11:21:14

    Refactor the selection of script and language tags
    
    The old hb-ot-tag.cc functions, `hb_ot_tags_from_script` and
    `hb_ot_tag_from_language`, are now wrappers around a new function:
    `hb_ot_tags`. It converts a script and a language to arrays of script
    tags and language tags. This will make it easier to add new script tags
    to scripts, like 'dev3'. It also allows for language fallback chains;
    nothing produces more than one language yet though.
    
    Where the old functions return the default tags 'DFLT' and 'dflt',
    `hb_ot_tags` returns an empty array. The caller is responsible for
    using the default tag in that case.
    
    The new function also adds a new private use subtag syntax for script
    overrides: "x-hbscabcd" requests a script tag of 'abcd'.
    
    The old hb-ot-layout.cc functions,`hb_ot_layout_table_choose_script` and
    `hb_ot_layout_script_find_language` are now wrappers around the new
    functions `hb_ot_layout_table_select_script` and
    `hb_ot_layout_script_select_language`. They are essentially the same as
    the old ones plus a tag count parameter.
    
    Closes #495.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/harfbuzz.git
    Git SSH git@git.kmx.io:kc3-lang/harfbuzz.git
    Public access ? public
    Description

    HarfBuzz text shaping engine

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg_l thodg
    Tags

  • README

  • [![Build Status](https://travis-ci.org/harfbuzz/harfbuzz.svg)](https://travis-ci.org/harfbuzz/harfbuzz)
    [![Build status](https://ci.appveyor.com/api/projects/status/0t0flrxpstj9lb9w?svg=true)](https://ci.appveyor.com/project/harfbuzz/harfbuzz)
    [![CircleCI](https://circleci.com/gh/harfbuzz/harfbuzz.svg?style=svg)](https://circleci.com/gh/harfbuzz/harfbuzz)
    [![Coverity](https://img.shields.io/coverity/scan/5450.svg)](https://scan.coverity.com/projects/behdad-harfbuzz)
    [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f17f1708783c447488bc8dd317150eaa)](https://app.codacy.com/app/behdad/harfbuzz)
    [![Coverage Status](https://img.shields.io/coveralls/harfbuzz/harfbuzz.svg)](https://coveralls.io/r/harfbuzz/harfbuzz)
    [ABI Tracker](http://abi-laboratory.pro/tracker/timeline/harfbuzz/)
    
    This is HarfBuzz, a text shaping library.
    
    For bug reports, mailing list, and other information please visit:
    
      http://harfbuzz.org/
    
    For license information, see the file COPYING.
    
    Documentation: https://harfbuzz.github.io