-
For a lot of conferences, some sort of "event style" is preferred by the design team. I got asked:
Personally, i like the idea of not having that feature, because allowing custom fonts will inevitably lead to someone using a totally unreadable font. However, i understand the need of events wanting to have some sort of control over the design of their schedule. Maybe the community has some ideas on how to solve that problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I can only speak for the schedule, but some widths in the shedule (for example the colored left border of each talk) are tuned to the font and font-size, changing the font will probably change the width of "16:00" and in extrem cases break the layout. While we probably could solve that by using different css units or something, it will take more work and more importantly, more maintenance effort (visually testing different fonts not breaking stuff would be an absolute pain). So should we allow |
Beta Was this translation helpful? Give feedback.
-
While I agree with @rashfael about the issues custom fonts will inevitably bring, I also don't think we can avoid the interest in them forever. That said, I don't think allowing font faces in custom CSS is the way forward, because for that to work, we'd need to either allow users to upload fonts (big nope), or open our CSP headers to permit style sources from external locations (possibly parsing them from custom CSS?), which seems brittle and not particularly nice to me. I think at least as a first step, and hopefully as a last step too, I'd suggest going for plugin-sourced fonts. This has the advantage of a) having a clear interface that an administrator gets to look over and approve, not one-per-event, and b) allows the whole topic to exist independently from the core project. And of course, c), it allows us to yoink most of pretix's approach. Even with administrator approved fonts, we might have to warn that not all of them are equally well-suited to the schedule display, or maybe even make the plugin hook so that fonts can also provide CSS changes. |
Beta Was this translation helpful? Give feedback.
-
@rixx I know this is an old and closed issue but #1242 is already a suggested solution which seems too complicated and I’d like to suggest one that much simpler one that covers most of cases. I don’t see any danger which poses simply linking (with Google curates what goes in, it’s widely used so any security problems are probably taken care of. Does making an exception in your |
Beta Was this translation helpful? Give feedback.
While I agree with @rashfael about the issues custom fonts will inevitably bring, I also don't think we can avoid the interest in them forever.
That said, I don't think allowing font faces in custom CSS is the way forward, because for that to work, we'd need to either allow users to upload fonts (big nope), or open our CSP headers to permit style sources from external locations (possibly parsing them from custom CSS?), which seems brittle and not particularly nice to me.
I think at least as a first step, and hopefully as a last step too, I'd suggest going for plugin-sourced fonts. This has the advantage of a) having a clear interface that an administrator gets to look over and approve, no…