This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.4"> | |
<GlyphOrder> | |
<!-- The 'id' attribute is only for humans; it is ignored when parsed. --> | |
<GlyphID id="0" name=".notdef"/> | |
<GlyphID id="1" name="space"/> | |
</GlyphOrder> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notes on server-side of https://fonts.gstatic.com/experimental/incxfer_demo | |
- it's currently tied to Google internal serving so just open sourcing code isn't helpful | |
/experimental/incxfer, args: | |
- font - string identifying font, e.g. Lobster:400 | |
- cp_current - csv of codepoints UA has | |
- cp_needed - csv of codepoints UA would like to have | |
- retain_gids - whether gids should be stable | |
- diff_type - lets demo support different diff algorithms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Notes on ContentProvider to fulfil requests for fonts, such as from FontsContractCompat. | |
// Not all imports shown | |
import android.provider.FontsContract.Columns; | |
public abstract class MyFontProvider extends ContentProvider { | |
@Override | |
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { | |
String query = selectionArgs[0]; // change based on your input pattern | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: prefer https://github.com/rsheeter/skia_colr/tree/colr_test, build_mac_colr.sh | |
git clone https://skia.googlesource.com/skia | |
cd skia | |
# download https://skia-review.googlesource.com/c/skia/+/300558 | |
# What I actually did: click download, http, and take the Branch example, e.g: | |
# git fetch "https://skia.googlesource.com/skia" refs/changes/58/300558/2 && git checkout -b change-300558 FETCH_HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# starting from a directory with both fontc and oswald | |
git clone [email protected]:googlefonts/fontc.git | |
git clone [email protected]:googlefonts/OswaldFont.git | |
cd fontc | |
# establish a virtual environment | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install -r resources/scripts/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Result 5/29/2024: | |
Num tags 9125 | |
Mean tags 5.086399108138239 | |
Median tags 5.0 | |
Stdev tags 2.474364733745681 | |
Max tags 27 | |
Usage: |