Page MenuHome

Add License of Droid Sans Fallback Font to LICENSE-droidsans.ttf.txt
Needs ReviewPublic

Authored by Yuki Hashimoto (hzuika) on Mar 28 2020, 12:30 AM.

Details

Summary

droidsans.ttf includes Chinese, Japanese and Korean characters font. But none of the fonts included in LICENSE-droidsans.ttf.txt contain these characters.
I suppose this font is Droid Sans Fallback(DroidSansFallback.ttf) by Google.
You can see the font in the android git host page.
https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/master/data/fonts/

This patch adds Droid Sans Fallback License to LICENSE-droidsans.ttf.txt

I could not find any document that droidsans.ttf contained DroidSansFallback.ttf.
However, I guessed from the following.

  1. Here Droid Sans Fallback is mentioned.

T34396

  1. I compared these fonts.

I compared visually using FontForge but I don't know if I can put that image here.
Instead, I put the compared image using Blender.


left: droidsans.ttf, right: DroidSansFallback.ttf
Note that DroidSansFallback.ttf does not include Alphabet.
The letters are Japanese, Korean and Chinese translations of "Plane", "BezierCurve", "SurfCurve", "Mball", "Text" and "GPencil" in order from the top.
Although the size is different, this is the original font size because object transform size and textcurve one remain the default value 1.0.
Here is .blend file.

Note that the font name of droidsans.ttf is "DejaVuSans".(This is a bit strange.)

There is no difference between the two.
So, I added Droid Sans Fallback License to LICENSE-droidsans.ttf.txt.

NOTICE file is in the same directory of android git page
https://android.googlesource.com/platform/frameworks/base.git/+/refs/heads/master/data/fonts/
And it is written Copyright (c) 2005-2008, The Android Open Source Project.
I added this according to Apache License 4. Redistribution.
https://www.apache.org/licenses/LICENSE-2.0

Diff Detail

Repository
rB Blender

Event Timeline

I have not dealt with any of Chinese, Japanese, or Korean characters myself. But I have edited some other gylphs and have added some new ones into the font. Because of the prior notices about DroidSans and DejaVuSans I have always been careful to only use those two fonts as sources though.

But you are right, it certainly looks that the CJK characters are from "DroidSans Fallback" and should be mentioned in the license. Comparing random characters between that font and ours I see they are pixel-perfect the same.

As for the internal name you are seeing of "DevaVuSans", that is the Fontname in the PS Names table inside the font. I have always assumed that this font started off as DejaVuSans and then glyphs were added to it from DroidSans and then it was saved as "droidsans.ttf" some time later, presumably when it contained more glyphs from that font than the original. But I don't know for sure.

I found the commit when this font was included in Blender.
@Sergey Sharybin (sergey) added droidsans.ttf.gz file on September 18, 2011.
thank you sergey!

commit 66a679d71f15b8c6b0ba4e1c8895ef1824b93a56
blender.git
github

In the commit, the contents of droidsans.ttf.gz was DroidSansFallback.ttf.
When I checked with FontForge, the license was Copyright (c) 2010 Google Corporation.
Therefore, I discarded the license added in the diff, and left only the font name.

I'm sorry.
Earlier, I submitted the wrong patch.
I created a new patch in comparison to master.

This patch is only add the font name (Droid Sans Fallback) and number (9)

This comment was removed by Yuki Hashimoto (hzuika).