Re: Using TT_NAME_ID_SAMPLE_TEXT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14-03-10 01:52 PM, Richard Hughes wrote:
> On 10 March 2014 17:50, Behdad Esfahbod <behdad@xxxxxxxxxx> wrote:
>> pango_language_get_sample_string().
> 
> Looks good as a fallback, thanks.

By design pango_language_get_sample_string() is exactly what you want.
If the implementation isn't, submit patches!

> Would g_utf8_substring(value,0,2) give me sane results for a icon?

Don't think so.  For that I suggest you get the sample char for all the
scripts involved in the language (pango_language_get_scripts()):


https://docs.google.com/spreadsheet/ccc?key=0AqRLrRqNEKv-dG53NFlnbWg5TEp6ejVxdnVjYXZQZkE&usp=drive_web#gid=0

You can try upper/lower-casing the sample char and if the script is cased, use
upper followed by lower.

> Richard.

-- 
behdad
http://behdad.org/
_______________________________________________
fonts mailing list
fonts@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/fonts
http://fonts.fedoraproject.org/





[Index of Archives]     [Fedora Users]     [Font Configuration]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux