On Tuesday, June 7, 2016 at 5:15:32 PM UTC+1, Peter Bienstman wrote: > > Also note that I’m upgrading to Qt5 at the moment, which I think uses a > different engine, so hopefully that will help too. > > Thanks, good to know!
I've made some progress, and should probably eat some of my earlier words. It seems that part (all?) of the difficulty was due to Qt not finding suitable typefaces. For people on GNU/Linux, something like the following should work: <pre style="white-space: pre; font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;">def example(): var = "foo" var2 = "bar"</pre> Using inline style attributes is not very readable, especially with such a large font stack. The ideal thing might be to have a user-configurable stylesheet somewhere, instead of the basic menu options currently present in Mnemosyne. For example, there could be a default style sheet with good cross-platform font stacks (maybe based on Eric Meyer's CSS Reset), and in addition to that, the Settings menu would allow the user to optionally enter raw CSS into a text field to create an override stylesheet. Or perhaps this could be done with a plugin. Anyhow, if I find/create a more elegant solution than the one pasted above, I'll try to remember to update this thread. Thanks again! -- You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/d3e1acaa-4076-4b94-b26d-ba561257c2a5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
