Esempio n. 1
0
        public Pango.Script GetScripts(out int num_scripts)
        {
            int raw_ret = pango_language_get_scripts(Handle, out num_scripts);

            Pango.Script ret = (Pango.Script)raw_ret;
            return(ret);
        }
Esempio n. 2
0
        public bool IncludesScript(Pango.Script script)
        {
            bool raw_ret = pango_language_includes_script(Handle, (int)script);
            bool ret     = raw_ret;

            return(ret);
        }
Esempio n. 3
0
        public static Pango.Gravity GravityGetForScriptAndWidth(Pango.Script script, bool wide, Pango.Gravity base_gravity, Pango.GravityHint hint)
        {
            int raw_ret = pango_gravity_get_for_script_and_width((int)script, wide, (int)base_gravity, (int)hint);

            Pango.Gravity ret = (Pango.Gravity)raw_ret;
            return(ret);
        }
Esempio n. 4
0
        public static Pango.Gravity GravityGetForScript(Pango.Script script, Pango.Gravity base_gravity, Pango.GravityHint hint)
        {
            int raw_ret = pango_gravity_get_for_script((int)script, (int)base_gravity, (int)hint);

            Pango.Gravity ret = (Pango.Gravity)raw_ret;
            return(ret);
        }
Esempio n. 5
0
        public static Pango.Language ScriptGetSampleLanguage(Pango.Script script)
        {
            IntPtr raw_ret = pango_script_get_sample_language((int)script);

            Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language)GLib.Opaque.GetOpaque(raw_ret, typeof(Pango.Language), false);
            return(ret);
        }
Esempio n. 6
0
        public static Pango.Script ScriptForUnichar(char ch)
        {
            int raw_ret = pango_script_for_unichar(GLib.Marshaller.CharToGUnichar(ch));

            Pango.Script ret = (Pango.Script)raw_ret;
            return(ret);
        }
Esempio n. 7
0
        public void GetRange(out int start, out int len, out Pango.Script script)
        {
            IntPtr start_ptr;
            IntPtr end_ptr;

            pango_script_iter_get_range(Handle, out start_ptr, out end_ptr, out script);
            start = (int)g_utf8_pointer_to_offset(native_text, start_ptr);
            len   = (int)g_utf8_pointer_to_offset(start_ptr, end_ptr);
        }
Esempio n. 8
0
 static extern void pango_script_iter_get_range(IntPtr raw, out IntPtr start, out IntPtr end, out Pango.Script script);