FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

Ubuntu font workaround

11 posts
Thanks Meter: 11
 
By ggdu, Junior Member on 13th April 2012, 02:55 PM
Post Reply Subscribe to Thread Email Thread
When using Ubuntu font many users see rectangles in different places, that donít belong there. They come from the .notdef character which in that very font has a rectangle shaped outline. This character appears when the font doesnít contain a character for the codepoint requested. It seems like some apps use codepoints different from usual spacing characters to show empty room: e.g. with launcher pro in the app drawer long names are shortened with an ellipsis after which those squares appear. The reason why using other fonts doesnít show these squares is, that some fonts only have an empty space at .notdef, so no outline appears. One can verify this by using the DroidSansNotdef.ttf which I attach. There Iíve only added an outline to the .notdef character and youíll get the same behaviour as with the Ubuntu font.

UbuntuAndroidfix.ttf has an empty space in .notdef so it isnít visible. Nevertheless, this is only a workaround for a bug thatís somewhere else.

Edit: As shown below, the real reason is missing U-FEFF in the font, so it is a font bug. Attached you find all four styles (Ubuntu regular, italic, bold and bold italic) with the added character.

20.4.12 ó New version: added spacing characters U-2000óU-200F to fix some more box-char appearances.
Attached Files
File Type: bz2 UbuntuAndroidfix.tar.bz2 - [Click for QR Code] (431.8 KB, 96 views)
Last edited by ggdu; 20th April 2012 at 05:48 PM.
The Following 3 Users Say Thank You to ggdu For This Useful Post: [ View ]
 
 
13th April 2012, 04:16 PM |#2  
kyrillos13's Avatar
Recognized Developer
Flag Athens
Thanks Meter: 5,171
 
Donate to Me
More
Basically after searching a bit more i found this workaround: http://forum.xda-developers.com/show...&postcount=269 It seems better. But thank you anyway!
The Following User Says Thank You to kyrillos13 For This Useful Post: [ View ]
13th April 2012, 05:05 PM |#3  
OP Junior Member
Thanks Meter: 11
 
More
Of course this is better, itís not only a workaround, itís a fix.
I attach a new version of the fixed font with the added glyph. At least the Droid Sans that I downloaded from Google webfonts (to be sure that I have the latest...) doesnít contain it.

Edit: Attachment removed, new attachment in first post.
Last edited by ggdu; 14th April 2012 at 06:44 PM.
13th April 2012, 05:25 PM |#4  
kyrillos13's Avatar
Recognized Developer
Flag Athens
Thanks Meter: 5,171
 
Donate to Me
More
Yeah thats right. But which program do you use to edit the font?
I used the Font Creator and the output size of the font is 312kb (instead of 335kb of the original ubuntu font). Your font is about 680kb. I used the droidsans.ttf from ICS platform (v1.0 build 114) and it did contain the glyph
Attached Files
File Type: rar fonts.rar - [Click for QR Code] (240.6 KB, 35 views)
The Following User Says Thank You to kyrillos13 For This Useful Post: [ View ]
13th April 2012, 05:38 PM |#5  
OP Junior Member
Thanks Meter: 11
 
More
I use fontforge and I'm doing font design in my spare time. But I've never thought about file sizes. I'll have a look at it later.

Sent from my GT-I5800 using Tapatalk 2
13th April 2012, 05:46 PM |#6  
kyrillos13's Avatar
Recognized Developer
Flag Athens
Thanks Meter: 5,171
 
Donate to Me
More
Quote:
Originally Posted by ggdu

I use fontforge and I'm doing font design in my spare time. But I've never thought about file sizes. I'll have a look at it later.

Sent from my GT-I5800 using Tapatalk 2

Nice Have you made a font?
13th April 2012, 07:16 PM |#7  
OP Junior Member
Thanks Meter: 11
 
More
I'm working on EB Garamond, my main project. I can't post a link yet, but you'll find it easily via google.

Sent from my GT-I5800 using Tapatalk 2
14th April 2012, 10:49 AM |#8  
kyrillos13's Avatar
Recognized Developer
Flag Athens
Thanks Meter: 5,171
 
Donate to Me
More
h i like the font. Nice!

The font is really good!

I love Greek & Ancient Greek letters in your font (i like the curves) but italic Greek just isn't my type. I think it should be less space between some letters.

Great work
The Following User Says Thank You to kyrillos13 For This Useful Post: [ View ]
14th April 2012, 11:25 AM |#9  
pavankadam's Avatar
Senior Member
Flag Belgaum.
Thanks Meter: 20
 
More
How to use it.. I am Kyrillos Rom v10.1..
14th April 2012, 02:32 PM |#10  
kyrillos13's Avatar
Recognized Developer
Flag Athens
Thanks Meter: 5,171
 
Donate to Me
More
Quote:
Originally Posted by pavankadam

How to use it.. I am Kyrillos Rom v10.1..

Just flash the v10.1.1 update.
14th April 2012, 06:31 PM |#11  
OP Junior Member
Thanks Meter: 11
 
More
Quote:
Originally Posted by kyrillos13

Yeah thats right. But which program do you use to edit the font?
I used the Font Creator and the output size of the font is 312kb (instead of 335kb of the original ubuntu font). Your font is about 680kb. I used the droidsans.ttf from ICS platform (v1.0 build 114) and it did contain the glyph

Iíve found the reason for the bigger size. Iíve overseen to untick the old style kern table option. Now itís only 273,4kb. Iíll upload it together with bold and italic.

Quote:
Originally Posted by kyrillos13

h i like the font. Nice!

The font is really good!

I love Greek & Ancient Greek letters in your font (i like the curves) but italic Greek just isn't my type. I think it should be less space between some letters.

Great work

Thank you! The italic is far away from ready, especially greek and cyrillic still need alot of work.
The Following User Says Thank You to ggdu For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes