set_language


Description:

[ Version ( since = "0.9.2" ) ]
public void set_language (Language language)

Sets the language of buffer to language.

Languages are crucial for selecting which OpenType feature to apply to the buffer which can result in applying language-specific behaviour. Languages are orthogonal to the scripts, and though they are related, they are different concepts and should not be confused with each other.

Use from_string to convert from BCP 47 language tags to Language.

Parameters:

language

An hb_language_t to set

buffer

An Buffer