code.pyret.org
code.pyret.org copied to clipboard
Revise `text-font` to not take a `font-family` parameter
How is this different from using text-font with courier as the font?
When I looked at the implementation, I thought I saw it said we ignored faces because they were system dependent... In any case, our documentation about text-font is woefully lacking then, because I didn't know we could handle this :)
We ignore font-family, not font-face, due to old browser bugs (which may no longer be an issue). IIRC, CSS treats font-face as a superset of font-family, which means it's pointless to have them as two separate arguments to the function. I kept things consistent with Racket in WeScheme for obvious reasons, but we don't have that constraint in Pyret.
ok, I'll close this, and make it a docs issue
Actually, no -- let's take this opportunity to fix text-image to eliminate the font-family field.