On Fri, Jun 07, 2002 at 10:12:44PM +0000, Mikhael Goikhman wrote: > On 07 Jun 2002 22:55:11 +0200, Olivier Chapuis wrote: > > > > The solution? > > > > at present time a font name is given as follow: > > > > shadow_stuff:xft_orand_core_font_description[[/A][/B]] > > > > where A is the _real_ charset of the font and B the name > > of an iconv converter (from/to UTF-8 to/from the charset of the > > font). In a normal situation these charsets hints are not > > needed (good font name and standard iconvs). > > > > What we can do is to add an other hint in between ( and ) before > > the "/" hints: (C)/A/B. C indicates that the charset/encoding of > > the chars which should be displayed. Of course this have sense > > only with an unicode font or if C is UTF-8. Moreover, in the case > > of an xft font the default for C should be the locale charset as > > with core fonts the default is the charset of the loaded font. > > > > Any comments before I start to implement this? > > String encoding should better be a property of a string, not a font. > But practically it is good (easier) to specify it together with font(s). > > Hovewer string encoding should by definition be the same with all fonts > in the *Font font list, so it should be specified just like shadow=1:.
Agree. > The default may be different for different font types (if you think so), > but if a user specified a string encoding, map it to any found font. > Ok, so the default can be the same for xft font and core font: if an xft font has encoding=iso8859-1 or encoding=iso10646-1 in its name (and no string encoding is specified by the user) the corresponding encoding for string encoding will be used. If no "encoding" hints are given in an xft name the locale logic will be used for the string encoding as with FontSet. > I think encoding=utf-8: is a good syntax; encoding is applied to strings > and ideally (i.e. hopefully) users will not confuse it with font charset. > Here the problem is that we can have a confusion with xft font name which use "encoding=*". What about "string_encoding=*" or "str_encoding=*" or "StrEncoding=*" or "StringEncoding=*" (and change shadow= to Shadow= in the man page; of course the code will be case insensitive). BTW, the new code will be ready on Monday (at least half ready as there are pbs in the implementation: text conversion are done each time a Flocale text drawing or text width function is called, as conversion should be done only when the text change; I will come back on this pbs later). This may cause 2.5.2 release delay, if you plan to release it next week. Olivier -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]