Skip to content

Instantly share code, notes, and snippets.

View sidawson's full-sized avatar

Si Dawson sidawson

View GitHub Profile
@sidawson
sidawson / gist:a5c24d7e0b89004d134d9425e2c04082
Created September 4, 2018 18:31
align non-proportional unicode font (Menlo, 12pt)
# Apologies if the indents are still a bit fucked.
# Got 2/3 through before I noticed the "spaces, 2" option top right.
# Why default to 2? Madness
def fancy_font(in_str, is_bold=False, is_italic=False):
''' makes fonts fancy! Bold+italic WILL fuck up visual length
only works with a-zA-Z0-9. but, holy fuck, it works at all.
why? COZ WE CAN OUTPUT INTO A PLAIN UTF-8 TEXTBOX WITH NO COLOUR!
(Sublime Text 3 output panel, I'm looking at you)

Keybase proof

I hereby claim:

  • I am sidawson on github.
  • I am sidawson (https://keybase.io/sidawson) on keybase.
  • I have a public key ASA0l1Vv0XRgNMswc1Aq_JLGQyYPG7efaUg673Ti3ks0IAo

To claim this, I am signing this object: