Droid is a font family first released in 2007 and created by Ascender Corporation for use by the Open Handset Alliance platform Android[1] and licensed under the Apache License. The fonts are intended for use on the small screens of mobile handsets and were designed by Steve Matteson of Ascender Corporation. The name was derived from the Open Handset Alliance platform named Android.
I have a linux rendering engine and while rendering some of the characters in the documents, it was shown as squared boxes. It all seemed to work fine in the sample application I was running on my Android Device and debugging it, I found that the font DroidSansFallback.ttf was responsible for finding the matching glyphs for those characters. I tried installing the google droid sans fonts using yum install google-droid-sans-fonts. Also, tried directly installing the rpm from -7/atrpms-x86_64/google-droid-sans-fonts-20100409-1.noarch.rpm.html. But the characters were still not being rendered. I saw there was a significant different in the size of DroidSansFallback.ttf files. On my Nexus 3, it was around 4.8 MB, while yum installed one had the size of 3.2 MB. I simply copied the ttf file from my Nexus 3 device over to the linux machine in /usr/share/fonts/ and the characters started rendering fine. Is there a way I could get this specific version or older versions of Droid Sans Fonts installed on my CentOS server? Is there any google's archived repository where I can get them?
Well you have the reason why the centos font is older. Google was helpful in open-sourcing Droid (thank you Google, that was mightily nice!) but its font publication methods are horrible. You have to comb thousands of Android code dumps, each several gigabytes in size, and mashed up from hundreds of git repos, just in case they include an updated version of of a font file less than 10 MiB. Rince and repeat, it gets old fast. Good ISP download test though.
I was messing around trying out different fonts under urxvt and it seems that after successfully installing and using the terminus font, I am no longer able to use my old TTF ones (droid and dejavu). I read through the fonts wiki pages and could not find anything that helped.
I use the droid font for my awesome wm taskbar and firefox and both are working just fine. It used to work for urxvt too, until recently. Does anyone have any idea what might be wrong? Oh and here's the .Xresources font line, in case that might be it. I kind of doubt it's the syntax though, I haven't touched that line at all.
fontconfig configuration settings, aimed at making the Droid Sans Fallback font be used to render Chinese, fails sometimes in an unpredictable way. This seems to be caused by the file 65-droid-sans-fonts.conf, which is currently installed by fonts-droid. Consequently that file is proposed to be dropped from fonts-droid. Some fontconfig files in language-selector are proposed to be changed accordingly.
While the fonts-droid package installs a bunch of fonts for various languages, only the Droid Sans Fallback font is used as part of Ubuntu's default font configuration. The regression risk for Chinese users is reasonably very low. There is a risk, though, that this change leads to surprise changes for individual users who make use of other fonts but Droid Sans Fallback. There is no indication that those other fonts are widely used.
Unlike e.g. fonts-wqy-microhei, the fonts-droid package installs a bunch of fonts, of which only one is needed for Chinese. In an attempt to sort things out I have built the fonts-android source package in my PPA with the DroidSansFallbackFull.ttf font broken out to a separate binary package named fonts-droid-cjk. The PPA also includes a version of language-selector where the changes in version 0.129.2 have been reverted.
OK, after I removed fonts-droid package and installed those testing packages and configurations which using "Droid Sans Fallback" instead of "Droid Sans" today, everything seems to be good. Below are my testing results,
I don't know why the configuration provided by fonts-droid package makes fontconfig match UMing first as "Droid Sans Fallback". That is so weird. Howver, removing fonts-droid eliminates the problem succesefully.
Yes, it's weird. Right now I suspect that the configuration file 65-droid-sans-fonts.conf (attached), which the current fonts-droid package installs, is the root cause of this mess. That file seems to imply that if you install fonts-droid, you want Droid Sans fonts be used for all languages, while we are currently only interested in Droid Sans Fallback. In other words, it does not fit well with Ubuntu's default font configuration.
65-droid-sans-fonts.conf is installed by the new fonts-droid-general package, but the Droid Sans Fallback related entries have been removed. I think that the packages in my PPA are now in a state which makes them uploadable to the archive.
You may ask: Do we really need this package split? Wouldn't it be sufficient to modify (or drop) 65-droid-sans-fonts.conf? Honestly I'm not sure. To test that theory, you can simply install both fonts-droid-cjk and fonts-droid-general from my ppa. When I do so on my 14.04 desktop, it seems to work. At least for the moment...
So the result of the current configuration is unpredictable, and I'm pretty sure by now that the culprit which causes this unpredictability is 65-droid-sans-fonts.conf. The pending merge proposals should fix that.
@Lukas: These issues are about to be fixed now. The solution, which is about to be uploaded to both trusty and utopic, does not include a split of the fonts-droid package. Consequently you should uninstall the fonts-droid-cjk and fonts-droid-general packages from my PPA, to not confuse your system. You should also remove the /.config/fontconfig/conf.d/65-droid-sans-first.conf (from the bug #1334495 discussion) if you haven't already.
However, fontconfig and Qt have different rules for picking a font. Qt just goes through the fallback font list, and finds the first font that has the needed character (I think). That is Droid Sans Fallback (!), which happens to use Chinese glyphs.
Or maybe try adding the non-VF Noto CJK fonts instead (google-noto-sans-cjk-fonts or google-noto-serif-cjk-fonts). I believe Qt may have some issues with variable font handling, particularly for complicated fonts like Noto CJK perhaps.
This package provides DroidSans Fallback variants, Fallback andFallbackFull.Each contains extensive character set coverage includingWestern Europe, Eastern/Central Europe, Baltic, Cyrillic, Greek andTurkish support. The Droid Sans regular font also includes support forArabic, Simplified and Traditional Chinese, Hebrew, Japanese, Korean andThai.Droid was designed by Ascender's Steve Matteson and hinted to provideoptimal quality for screen text. Other Packages Related to fonts-droid-fallback
I have tried to follow the directions for adding a custom font to support Chinese in the invoice. It is not working. I have done several tests including rendering as html (and using the alternate src line in order to properly reference the font. That works.
I can also confirm that the droid sans fallback font is being copied into the DOMPDF fonts folder.
If you know you have a mixture of CJK and Latin text, consider just using Font("cjk") because this supports everything and also significantly (by a factor of up to three) speeds up execution: MuPDF will always find any character in this single font and never needs to check fallbacks.
It should be possible to change fonts in preferences/Appearance for the whole system. VL-Gothic is used as a "fallback" when no characters are found in the font selected there. Droid Sans may work better for Chinese and Korean, but will it work for Japanese too? If it does, we should use it as the fallback. But the correct way to fix this is a better system to pick the right font for each language (and detection of the language using the characters used).
When defining the fallback font, you must specify all four variants (normal, bold, italic, bold_italic), even if you use the same font file for each.You can use a shorthand syntax to do so, which is shown below.
Next, add the key name to the fallbacks key under the font-catalog key.The fallbacks key accepts an array of values, meaning you can specify more than one fallback font.However, we recommend using a single fallback font, if possible, as shown here:
df19127ead