Hide unicode directional control characters

They shouldn't be looked up in the font and displayed under any
circumstances.
This commit is contained in:
Dav999
2024-01-03 18:55:42 +01:00
committed by Misa Elizabeth Kai
parent 45ec77973b
commit 2003eed2a5
3 changed files with 31 additions and 8 deletions

View File

@@ -1,11 +1,15 @@
#ifndef FONTBIDI_H
#define FONTBIDI_H
#include <stdint.h>
namespace font
{
void bidi_init(void);
void bidi_destroy(void);
bool is_directional_character(uint32_t codepoint);
bool is_joiner(uint32_t codepoint);
bool bidi_should_transform(const char* text);
const char* bidi_transform(const char* text);