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
# Copyright 2019 Michael LaGattuta | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
# Script to decompose components with mismatched 2x2 matrix | |
# See https://github.com/googlefonts/fontmake/issues/595 | |
for glyph in Glyphs.font.glyphs: | |
#print glyph | |
xforms = [] | |
mismatch = [] | |
for (i, layer) in enumerate(glyph.layers): | |
for (j, component) in enumerate(layer.components): | |
if i == 0: | |
xforms.append(component.transform) |
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
// Font Smoothie copyright 2013,14,15 Torben Haase <http://pixelsvsbytes.com> | |
// Source-URL <https://gist.github.com/letorbi/5177771> | |
// | |
// Font Smoothie is free software: you can redistribute it and/or modify it under | |
// the terms of the GNU Lesser General Public License as published by the Free | |
// Software Foundation, either version 3 of the License, or (at your option) any | |
// later version. | |
// | |
// Font Smoothie is distributed in the hope that it will be useful, but WITHOUT | |
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
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
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
# Prompt goodness | |
# | |
# This is for my local machine, so I don't display the host to save space (I do on remote servers). | |
# It looks like this: | |
# | |
# ~/Code/some_dir(my-git-branch)$ | |
# |
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
import commonmark | |
with open('test.md', 'r') as myfile: | |
text = myfile.read() | |
parser = commonmark.Parser() | |
ast = parser.parse(text) | |
# Returns the text from markdown, stripped of the markdown syntax itself | |
def ast2text(astNode): |
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
# Copyright 2020 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
# Copyright 2020 Khaled Hosny | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
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
// | |
// FontPreview | |
// Copyright © 2018 Leon Breedt | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
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
#!/bin/sh | |
# hack4tex 0.1 | |
# Copyright (c) 2016 Christian Himpe | |
# released under BSD 2-Clause License ( opensource.org/licenses/BSD-2-Clause ) | |
# based on Stephan Lehmke's answer to "How do I use TrueType Fonts with PDFTeX | |
# using otftotfm?" on tex.stackexchange.com/a/52902 | |
# | |
# requires otftotfm which is part of lcdf-typetools | |
# |
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
# design settings | |
gutter = 60 | |
radius = 6 | |
pageW = 1600 | |
# draw filled outline or contours | |
contour = False | |
# draw nodes and bluezones and vertical metrics? |