Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,465 Members 37,164 Now Online
XDA Developers Android and Mobile Development Forum

Ubuntu font workaround

Tip us?
 
ggdu
Old
(Last edited by ggdu; 20th April 2012 at 05:48 PM.)
#1  
Junior Member - OP
Thanks Meter 11
Posts: 11
Join Date: Jan 2011
Default Ubuntu font workaround

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, 95 views)
The Following 3 Users Say Thank You to ggdu For This Useful Post: [ Click to Expand ]
 
kyrillos13
Old
#2  
kyrillos13's Avatar
Recognized Developer
Thanks Meter 5,096
Posts: 4,169
Join Date: Sep 2010
Location: Athens

 
DONATE TO ME
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!



S4 Mini LTE Black Edition powered by CyanogenMod 11.0 Nightly

DEV - Galaxy Ace 2 firmware: KYRILLOSv9.JB.XXMG2 (Android 4.1.2)
DEV - Galaxy 3 firmware: Kyrillos' ROM v10.6 (Android 2.3.7) // Kyrillos' ROM v9.7.1 (Android 2.2)


Always have your stuff when you need it with Dropbox. Sign up here and get 2.5GB for free!!
Copy is the easiest way to store, protect, and share all your amazing things! Sign up here and get 20GB for free!!
The Following User Says Thank You to kyrillos13 For This Useful Post: [ Click to Expand ]
 
ggdu
Old
(Last edited by ggdu; 14th April 2012 at 06:44 PM.)
#3  
Junior Member - OP
Thanks Meter 11
Posts: 11
Join Date: Jan 2011
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.
 
kyrillos13
Old
#4  
kyrillos13's Avatar
Recognized Developer
Thanks Meter 5,096
Posts: 4,169
Join Date: Sep 2010
Location: Athens

 
DONATE TO ME
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)



S4 Mini LTE Black Edition powered by CyanogenMod 11.0 Nightly

DEV - Galaxy Ace 2 firmware: KYRILLOSv9.JB.XXMG2 (Android 4.1.2)
DEV - Galaxy 3 firmware: Kyrillos' ROM v10.6 (Android 2.3.7) // Kyrillos' ROM v9.7.1 (Android 2.2)


Always have your stuff when you need it with Dropbox. Sign up here and get 2.5GB for free!!
Copy is the easiest way to store, protect, and share all your amazing things! Sign up here and get 20GB for free!!
The Following User Says Thank You to kyrillos13 For This Useful Post: [ Click to Expand ]
 
ggdu
Old
#5  
Junior Member - OP
Thanks Meter 11
Posts: 11
Join Date: Jan 2011
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
 
kyrillos13
Old
#6  
kyrillos13's Avatar
Recognized Developer
Thanks Meter 5,096
Posts: 4,169
Join Date: Sep 2010
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by ggdu View Post
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?



S4 Mini LTE Black Edition powered by CyanogenMod 11.0 Nightly

DEV - Galaxy Ace 2 firmware: KYRILLOSv9.JB.XXMG2 (Android 4.1.2)
DEV - Galaxy 3 firmware: Kyrillos' ROM v10.6 (Android 2.3.7) // Kyrillos' ROM v9.7.1 (Android 2.2)


Always have your stuff when you need it with Dropbox. Sign up here and get 2.5GB for free!!
Copy is the easiest way to store, protect, and share all your amazing things! Sign up here and get 20GB for free!!
 
ggdu
Old
#7  
Junior Member - OP
Thanks Meter 11
Posts: 11
Join Date: Jan 2011
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
 
kyrillos13
Old
#8  
kyrillos13's Avatar
Recognized Developer
Thanks Meter 5,096
Posts: 4,169
Join Date: Sep 2010
Location: Athens

 
DONATE TO ME
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



S4 Mini LTE Black Edition powered by CyanogenMod 11.0 Nightly

DEV - Galaxy Ace 2 firmware: KYRILLOSv9.JB.XXMG2 (Android 4.1.2)
DEV - Galaxy 3 firmware: Kyrillos' ROM v10.6 (Android 2.3.7) // Kyrillos' ROM v9.7.1 (Android 2.2)


Always have your stuff when you need it with Dropbox. Sign up here and get 2.5GB for free!!
Copy is the easiest way to store, protect, and share all your amazing things! Sign up here and get 20GB for free!!
The Following User Says Thank You to kyrillos13 For This Useful Post: [ Click to Expand ]
 
pavankadam
Old
#9  
pavankadam's Avatar
Senior Member
Thanks Meter 20
Posts: 163
Join Date: Apr 2011
Location: Belgaum.
How to use it.. I am Kyrillos Rom v10.1..
Powered by TonySkyfall's Ignorance V3
 
kyrillos13
Old
#10  
kyrillos13's Avatar
Recognized Developer
Thanks Meter 5,096
Posts: 4,169
Join Date: Sep 2010
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by pavankadam View Post
How to use it.. I am Kyrillos Rom v10.1..
Just flash the v10.1.1 update.



S4 Mini LTE Black Edition powered by CyanogenMod 11.0 Nightly

DEV - Galaxy Ace 2 firmware: KYRILLOSv9.JB.XXMG2 (Android 4.1.2)
DEV - Galaxy 3 firmware: Kyrillos' ROM v10.6 (Android 2.3.7) // Kyrillos' ROM v9.7.1 (Android 2.2)


Always have your stuff when you need it with Dropbox. Sign up here and get 2.5GB for free!!
Copy is the easiest way to store, protect, and share all your amazing things! Sign up here and get 20GB for free!!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes