-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help: Set Default Font #168
Comments
Does this work for you? https://github.com/iwasrobbed/Down#parsing-api
|
That's interesting. What kind of Does it use raw CSS properties like:
Or does it take a full CSS file in the form of a
Thanks! |
Something like this (taken from let style = "* {font-family: Helvetica } code, pre { font-family: Menlo }"
down.toAttributedString(stylesheet: style) |
Ah, okay. Makes sense. Thank you! |
FYI: this is further possible via the default |
let defaultStylesheet = "* {font-family: SFProDisplay-Semibold; font-size: 15px}" Is this the correct format to set system font? Can someone guide me? |
I've been searching through the documentation and the issues, and I don't see a clear way to set the default font for the entire
NSAttributedString
. If you apply the font as an attribute after Down renders the string, it will overwrite all the other attributes.Is there a way to set a default font and then have Down render the rest of the string as it should (bold, italic, etc.?
I see the
Styler
option, but I don't see any documentation on how to use it.Thanks!
The text was updated successfully, but these errors were encountered: