Comments (3)
Yes, RTL languages are something that I want to support, but I'm not sure when I'll get around to it.
I will have to do more research on how they are implemented in TrueType first.
But, if they work the way I think they do, then there will be no changes to libschrift necessary -
It is likely just sftdemo (and any other application that uses libschrift) that has to be changed.
Things get complicated though if an application wishes to support mixed LTR and RTL text (which is very likely).
Then they will need an algorithm that swaps characters around until the entire text is completely LTR (or RTL).
For Unicode, this "BiDi" algorithm is standardized.
But just the reference implementation of that algorithm is two times as large as the entirety of libschrift...
By the way, thanks for the sample text.
from libschrift.
Thank you for your reply and for your great work so far. I'm personally not bothered about LTR and RTL being mixed within the same text. But I wonder if that issue applies to numbers in Persian, which are written LTR within text that is RTL, as shown below.
بیش از ۹۰۰۰ است
The sample text is the poem Bani Adam written by Iranian poet Saadi in 1258. I sourced the text from https://en.wikipedia.org/wiki/Bani_Adam 🙂
from libschrift.
When you say disjoined, you mean that text shaping is missing right? Which instead really an RTL issue. RTL, without bidirectional text support, is simply solved by mirroring text without mirroring the glyphs (I think there are some glyphs you have to substitute for mirrored versions, such as brackets), but text shaping is more involved.
from libschrift.
Related Issues (20)
- Darwin compilation HOT 8
- Tutorial for OpenGL? HOT 4
- support anti-aliasing? HOT 7
- Add travis CI or any other CI HOT 1
- How Can I Compile For Windows? [Question] HOT 2
- Does libschrift support colored emojis? HOT 1
- Stack overflow in render_outline due to 256KB stack allocation HOT 3
- demos depend on graphics environment HOT 1
- draw_line function algorithm HOT 2
- Review usage of intenal csearch() function
- Whitespaces are not being rendered HOT 2
- typo in docs
- guard unix-y implementation details
- Empty rendering output under windows HOT 4
- Function that returns a list of all glyphs
- Sample code that just outputs the line points HOT 1
- Insufficiently wide char code on some platforms HOT 2
- background is not completely black HOT 5
- C++ support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libschrift.