[API] Add hb_language_get_default()
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 6 May 2011 04:04:28 +0000 (00:04 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 6 May 2011 04:05:08 +0000 (00:05 -0400)
commit34fb5521a5fbb6b95ceff4bbac42a62628bc9f31
tree3e27e0e4127e83e645f2b16c730eb5799051a54d
parentc78f4485587cc1dee07e772c164a13fde9d2859f
[API] Add hb_language_get_default()

It uses locale information to detect default language.  It's used by
hb_shape() whenever language is not set on the buffer.

Not sure how to properly test it in the test suite.  Tested by observing
that with DejaVu Sans we select the proper local glyph version for U+431
under Serbian locale.  See http://www.pango.org/ScriptGallery
src/hb-common.cc
src/hb-common.h
src/hb-shape.cc
test/test-common.c