mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Change the unifont API so that text is passed right down to the
individual font implementation as wchar_t, rather than having to be converted by the client into the appropriate MBCS/SBCS. This also means I can remove 'real_charset' from the public-facing contents of the unifont structure. [originally from svn r9292]
This commit is contained in:
@ -21,14 +21,8 @@ typedef struct unifont {
|
||||
/*
|
||||
* public_charset is the charset used when the user asks for
|
||||
* `Use font encoding'.
|
||||
*
|
||||
* real_charset is the charset used when translating text into
|
||||
* a form suitable for sending to unifont_draw_text().
|
||||
*
|
||||
* They can differ. For example, public_charset might be
|
||||
* CS_ISO8859_1 while real_charset is CS_ISO8859_1_X11.
|
||||
*/
|
||||
int public_charset, real_charset;
|
||||
int public_charset;
|
||||
|
||||
/*
|
||||
* Font dimensions needed by clients.
|
||||
@ -41,7 +35,7 @@ unifont *unifont_create(GtkWidget *widget, const char *name,
|
||||
int shadowoffset, int shadowalways);
|
||||
void unifont_destroy(unifont *font);
|
||||
void unifont_draw_text(GdkDrawable *target, GdkGC *gc, unifont *font,
|
||||
int x, int y, const char *string, int len,
|
||||
int x, int y, const wchar_t *string, int len,
|
||||
int wide, int bold, int cellwidth);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user