[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 support (with XFT fonts)
From: |
Joe Nelson |
Subject: |
Re: UTF-8 support (with XFT fonts) |
Date: |
Mon, 25 Apr 2022 21:53:32 -0500 |
Michael Eager wrote:
> On 4/25/22 15:23, Joe Nelson wrote:
> > Anyone know how to use an XFT font in the data display window?
> Can you send me a small test program and tell me exactly what you are
> doing in DDD to display the data?
Hi Michael, thanks for the quick reply!
Here's a program:
#include <stdio.h>
char s[BUFSIZ];
int main(void)
{
fgets(s, BUFSIZ, stdin);
/* break below and display s */
fputs(s, stdout);
}
As input, try some greek letters like α,ε,η,ι,ο,ω,υ. I have DDD
configured to open a separate execution window with xterm, using the -u8
flag, so your input should be interpreted as UTF-8 when you paste it.
> Also send me your ~/.ddd/init file.
https://github.com/begriffs/obsd/blob/master/home/.ddd/init
(at commit 75199cb as of the writing of this email)
I chose Inconsolata as my XFT font, but if you lack that one, try
something more likely to be on your system, such as Helvetica. You
should see the XFT font show up everywhere in the DDD UI except inside
the data display window. The greek letters will appear there as either
two nonsense characters per letter, or as boxes, depending on your font.