Skip to content

Instantly share code, notes, and snippets.

SALSA
Suggested amalgamations for IDTA medal tests
LEVEL 1 BEGINNER (One Dance Test)
1 2
Time Step
@HinTak
HinTak / Emoji
Created April 16, 2020 01:35
Emoji
⋯⋯⋯
@HinTak
HinTak / gist:db27120e575921123a1f4798ac1220be
Created September 25, 2018 23:45
Devanagari complex text layout
1
https://github.com/LayoutFarm/Typography/tree/Type2EvalStack
xv, broken with flower-pseudo16.tiff (crash), quad-jpeg.tiff, zackthecat.tif
https://github.com/LayoutFarm/Typography/issues/75
-magnify option of imagemagick takes argument but only do x2
https://github.com/LayoutFarm/Typography/tree/Type2EvalStack
https://github.com/LayoutFarm/Typography/issues/75
@HinTak
HinTak / rast_parameters.py
Created May 6, 2016 14:04
Att the set-able FontVal rasterization test parameters.
import clr
clr.AddReference("OTFontFileVal.dll")
from OTFontFileVal import ValidatorParameters
from System import Array
from System.Collections.Generic import List
class validation_parameters:
def __init__(self):
@HinTak
HinTak / ttc-merger.py
Created May 4, 2016 20:33
FontVal-based IronPython script to merge truetype fonts into a truetype collection.
# Usage:
# mono ipy.exe ttc-merger.py outfile infile1 infile2 ... infileN
# Copyright (c) Hin-Tak Leung
# Tips:
# "mono ipy.exe -h" to get options.
# -X:ColorfulConsole - useful on terminal with a light background
# (somehow forground color is hard-coded to white)
# -X:PassExceptions - to see C# exceptions
# Usage:
# mono ipy.exe ttc-splitter.py infile outfile
# [writes outfile.0,outfile.1, etc for member fonts]
# Copyright (c) Hin-Tak Leung
# Tips:
# "mono ipy.exe -h" to get options.
# -X:ColorfulConsole - useful on terminal with a light background
# (somehow forground color is hard-coded to white)
# Usage:
# mono ipy.exe ttx-l-example.py <fontfile1> <fontfile2> ...
# This script does the same thing as "ttx -l", except
# it will recurse through member fonts in a ttc and also take
# multiple font file arguments.
# Copyright (c) Hin-Tak Leung
# Tips:
@HinTak
HinTak / headtime-example.py
Created May 2, 2016 18:35
IronPython example to use Microsoft Font Validator's internals to get at font creation and modification times.
# Usage:
# mono ipy.exe this_script.py <fontfile1> <fontfile2> ...
# Copyright (c) Hin-Tak Leung
# Tips:
# "mono ipy.exe -h" to get options.
# -X:ColorfulConsole - useful on terminal with a light background
# (somehow forground color is hard-coded to white)