growi icon indicating copy to clipboard operation
growi copied to clipboard

Feature: Selectable font-family

Open yuki-takei opened this issue 5 years ago • 2 comments

TODO

/admin/customize

  • Add radio button to select System Default Font

    • preset 1: font-family: Lato, sans-serif;
    • preset 2: font-family: Lato, 'Noto Sans JP', sans-serif;
    • custom
  • Add checkbox Allow customize font by users

  • Add radio button to select System Default Monospace Font

    • preset 1: font-family: Roboto Mono, monospace;
    • preset 2: font-family: Roboto Mono, 'MS Gothic', monospace;
    • custom
  • Add checkbox Allow customize font by users

/me

  • Add radio button to select Default Font

    • Use System Default Font
    • preset 1: font-family: Lato, sans-serif;
    • preset 2: font-family: Lato, 'Noto Sans JP', sans-serif;
    • custom
  • Add radio button to select Default System Monospace Font

    • Use System Default Monospace Font
    • preset 1: font-family: Roboto Mono, monospace;
    • preset 2: font-family: Roboto Mono, 'MS Gothic', monospace;
    • custom

Create a swig widget to add <link> tag

  • Load google fonts according to selected system fonts and selected user custom fonts
    • weight: 400 and 700

Migration

  • Set system font-family according to the system language

IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

yuki-takei avatar Apr 03 '19 10:04 yuki-takei

Is the preset font added to style like how custom css is added to style? https://github.com/weseek/growi/blob/master/src/server/views/layout/layout.html#L104

yaodingyd avatar Apr 22 '19 13:04 yaodingyd

Is the preset font added to style like how custom css is added to style?

Yes, the preset font styles (font-family: specifications) must be injected into a swig file somewhere.

yuki-takei avatar Apr 23 '19 10:04 yuki-takei