OK, so we are on the same page, you're saying that if you use the @defaultfont in either CSS or a filter to change the modal/button. This code is also changing default font used on the DMS editor, is that correct ?
After the weekend I'll do a quick screencast where I'll try and explain my problem as clearly as possible and we can then see what's the situation with clear understanding It's always difficult to explaing these type of things via text.
There's a change I'm missing something or that I'm doing something wrong, but so far it seems like there would be great benefit in doing couple of small changes.
But I have not managed to change the default font using a filter. If I understand correctly it's because in variables.less you have:
Which means that I can use a filter to change the plBaseFont
but as far as I understand I cannot change the defaultfont because there is no variable.
At least these two:
...do not work.
But to asnwer your question: yes. if I manually edit the variables.less and change line 31 from
to for example:
it then changes the typography in modals, buttons, inputs AND all the DMS controls!
So unless I'm mistaken I'd heavily suggest that in a future release of DMS we'd have
1. a font for headings
2. font for the body and all other things on a page except headings. So modals, buttons, everything would use this unless users decide otherwise for some specific reason in a specific project
3.and a default font for the DMS controls (Open Sans is a good idea and I see no reason why users should be able to change it at least without coding).
So like I said I now need all this in my Less-file:
...just to use a typekit font because I need to override so many strange cases using the defaultfont. And even more in some cases.
But if modals and buttons etc. would just inherit the body font there would be no problems and it would be lot easier to adjust fonts.
Also the problem is there even without typekit if users just use Google Fonts with DMS controls. No coding at all here:
I've used some weird typefaces to make it clear =) So in the image we have a body font which should be used everywhere besides the headings. Headings of course use the heading font. But here the button uses Open Sans which is the default font for the DMS controls. And now it takes lots of effort to override it.
Because I use DMS in all my projects I'm very passionate about helping you improve it and at the same time help me improve my workflow on future projects.
Again, thank you very much.
Edited by ketri, 22 August 2014 - 11:18 AM.