How can I add a new repository for a mathematical font?

72 views
Skip to first unread message

fred.wang

unread,
May 21, 2014, 10:06:06 AM5/21/14
to android...@googlegroups.com
Dear Android developers,

Android has missed appropriate mathematical fonts for a long time and the feature request I submitted two years ago to improve the situation didn't receive much attention. As some of you probably know, the OpenType MATH table was recently published in the latest ISO Open Font Format working draft [1], partial support is available in Gecko 31 [2] and similar work is in progress to implement it in WebKit [3]. At least one OpenType MATH font is necessary for proper mathematical layout on Android. Moreover, many mathematical symbols are not available on Android because the default fonts installed do not have the desired Unicode coverage. At the moment, the workaround has been to ask authors to use Web fonts on their web site / EPUB book or to bundle such fonts in some add-on like [4], which is less than ideal.

So I decided to try and solve these issues and I've created a git repository for the Latin Modern Math font [5]. This font has an OpenType MATH table, good coverage for math symbols, a rendering similar to the default typeface used in TeX [6], and is used by default on modern TeX engines such as XeTeX, LuaTeX or ConTeXt:

https://github.com/fred-wang/android-latin-modern-math

I'd like to have it in external/latin-modern-math/ but I probably need to tell depo to track such a git repository. Can someone tell me how I can do that and if other work is necessary to make the Latin Modern Math font installed by default on Android devices?

(note: another candidate for good unicode coverage would be the STIX Math font [7], but at the moment it has many bugs and it's not clear when the consortium will fix them)

Thanks,

[1] http://mpeg.chiariglione.org/standards/mpeg-4/open-font-format/text-isoiec-cd-14496-22-3rd-edition (section 6.3.6)
[2] https://developer.mozilla.org/en-US/Firefox/Releases/31#MathML
[3] https://bugs.webkit.org/show_bug.cgi?id=130322, 72828, 119038 and more.
[4] https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/
[5] http://www.gust.org.pl/projects/e-foundry/lm-math
[6] https://en.wikipedia.org/wiki/Computer_Modern#Latin_Modern
[7] http://www.stixfonts.org/

Frédéric WANG

unread,
Jun 6, 2014, 10:03:29 AM6/6/14
to android...@googlegroups.com
Hi all,

I'm reposting that message since I have not gotten any reply for two
weeks. The only thing I'd like to know is the procedure to add new
pre-installed fonts in Android. As I understand, they are typically
stored in a separate git repository, so the standard review procedure
does not apply. I thus created the separate repository

https://github.com/fred-wang/android-latin-modern-math

and I'd like to know how to make it tracked by repo and whether anything
else is needed. I asked this on the original two-year old bug report and
someone told me that the best was to ask on android-contrib.

Thanks,

(original message:
https://groups.google.com/forum/#!topic/android-contrib/1n667pstdqc)

--
Frédéric Wang
maths-informatique-jeux.com/blog/frederic

Chih-Wei

unread,
Nov 4, 2014, 2:49:20 AM11/4/14
to android...@googlegroups.com, fred...@free.fr
I think it's a really useful feature to be added.
Hope some android devs can consider this.

Frédéric WANG於 2014年6月6日星期五UTC+8下午10時03分29秒寫道:
Reply all
Reply to author
Forward
0 new messages