Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 40:47:55 |
Calls: | 583 |
Calls today: | 1 |
Files: | 1,138 |
Messages: | 110,394 |
Hi,
Is there anyway I can tell whether a particular uft8 code-point is
actually implemented in my terminal's current font?
For example, 0xe2 0x96 0x89 "rue" "Left Seven Eighths Block" is often displayed as the i-don't-know-what-this-is glyph.
Thanks.
UTF-8 is a text encoding, it???s not something that fonts have to support or even know about. Font encoding tables contain Unicode code points.
Font encoding tables contain Unicode code points.
On Mon, 7 Jul 2025 02:45:01 -0000 (UTC), I wrote:
Font encoding tables contain Unicode code points.
Actually no, I think they have to contain character codes. Not sure if determining the equivalence between composed and decomposed forms has to
be dealt with in OpenType or not.
Actually, I wanted to detect whether the font that happens to be in use (which I can't control) has a particular glyph available. I have no
problem choosing a suitable font for myself.
I thought that maybe there'd be some kind of ioctl call.
On Tue, 8 Jul 2025 10:20:49 +0100, Richard Harnden wrote:
Actually, I wanted to detect whether the font that happens to be in use
(which I can't control) has a particular glyph available. I have no
problem choosing a suitable font for myself.
I thought that maybe there'd be some kind of ioctl call.
ioctl(2) calls are for device drivers, which are part of the kernel. What you want is a call in the font APIs, which run entirely in userland.
On Linux systems, the two relevant subsystems would be Fontconfig and FreeType. Fontconfig lets you query your system/user setup to find out
what fonts are available, and what their capabilities are. FreeType not
only takes care of low-level glyph rendering, it also lets you pry into
the innards of a particular font in more detail.
In this case, wouldn't a more appropriate route be introducing a
terminal escape sequence for this ...
On Thu, 10 Jul 2025 09:40:58 +0100, Nuno Silva wrote:
In this case, wouldn't a more appropriate route be introducing a
terminal escape sequence for this ...
Not sure why thatrCOs relevant to issues of font query APIs.
On 2025-07-10, Lawrence D'Oliveiro wrote:
On Thu, 10 Jul 2025 09:40:58 +0100, Nuno Silva wrote:
In this case, wouldn't a more appropriate route be introducing a
terminal escape sequence for this ...
Not sure why thatrCOs relevant to issues of font query APIs.
Because the font rendering is a property of the terminal or terminal emulator.
On Fri, 11 Jul 2025 08:45:32 +0100, Nuno Silva wrote:
On 2025-07-10, Lawrence D'Oliveiro wrote:
On Thu, 10 Jul 2025 09:40:58 +0100, Nuno Silva wrote:
In this case, wouldn't a more appropriate route be introducing a
terminal escape sequence for this ...
Not sure why thatrCOs relevant to issues of font query APIs.
Because the font rendering is a property of the terminal or terminal
emulator.
The question was about a property of the font. The fact that the font happens to be used by a terminal emulator is irrelevant.