Comments (7)
You're great Oliver
I'm waiting for Ver2.1
And I promise the first code on my lovely SSD1306 OLED will be:
u8g2.print("اولیور به ایران خوش آمدی"); //Means "Welcome to Iran Oliver" ;) ;)
from u8g2.
I have created several arabic fonts:
https://raw.githubusercontent.com/wiki/olikraus/u8g2/fntpic/u8g2_font_cu12_t_arabic.png
https://raw.githubusercontent.com/wiki/olikraus/u8g2/fntpic/u8g2_font_10x20_t_arabic.png
https://raw.githubusercontent.com/wiki/olikraus/u8g2/fntpic/u8g2_font_unifont_t_arabic.png
so you can choose between three fonts at the moment.
from u8g2.
looks ok, but i am not sure because of the writing direction. Kerning is not supported...
from u8g2.
Yes, the direction is right to left.
Is'nt there any hope for kerning?
from u8g2.
U8g2 fonts are derived from the BDF file format. To my knowledge, this BDF file format does not contain any kerning information. So u8g2 font calculation tool chain can not get and handle this information.
The only option what i could imagine, is that we add the kerning information as an extra table manually. Would this be an option?
from u8g2.
Currently i am thinking on the introduction of a kerning table, which has to be added manually.
Something like this:
uint16_t kerning_table[] =
{
code1, code2, kerning,
code1, code2, kerning,
code1, code2, kerning,
...
};
Probably you have to experiment a little bit and derive the kerning table manually. This mean, u8g2 project will not provide any kerning table (mainly because of the above reason, that the kerning is not there in the font sources)
Then there would be a function
u8g2.setKerningTable(kerning_table);
What do you think?
from u8g2.
afm files contain proper kerning, some fonts are mentioned here.
The kerning table could be derived from the atm files:
http://www.nsl.com/k/pdf/afm/
from u8g2.
Related Issues (20)
- u8g2 bus control and possible conflict HOT 2
- RaspPi Pico/Arduino IDE: Can't get the library to use other Clock and Data Pins. HOT 4
- Problem with PCF8812 HOT 10
- NodeMCU ESP8266 display not working HOT 2
- Pin mux conflict with RP2040 (Pico) earlephilhower Arduino core HOT 2
- KS0108: Increase reset duration to 5mS HOT 1
- t6963 f Data Hold Time HOT 6
- How to switch to the next page in u8g2 HOT 1
- SPI is Broken on ESP32 S2 mini. (Possibly S2 as well) HOT 1
- Can I use u8g2 with SSD1357 mono mode? HOT 3
- SH1107 128x128 OLED text jumbled around HOT 6
- STM32F4 t6963 interfacing usage HOT 19
- Support for Monochrome Low-Power ST7302 Display HOT 1
- Using ERC240160 in ESP32S3 SPI HW mode does not work HOT 1
- Artefacts using U8G2_SSD1309_128X64_NONAME0_F_4W_SW_SPI OLED Display
- internal compiler error: in type_hash_canon, at tree.c:7158 HOT 1
- U8g2 font size and type HOT 3
- New Version UW ttyp0
- How to print accented characters with U8g2lib in character mode ? HOT 4
- Doubt in constructor for KS0108 Controller based 128X64 GLCD HOT 1
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 u8g2.