Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Has anyone succeeded in adding a custom font to a theme in LS 6?

  • Leithy
  • Leithy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago - 11 months 2 weeks ago #243275 by Leithy
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.x
Own server or LimeSurvey hosting: OWND
Survey theme/template: Vanilla Extended
==================

Hiya, I'm attempting to update a 5.x Vanilla Extended theme to 6.x and so far haven't been able to get a custom font working in 6.x - has anyone else succeeded?

Here's what I've attempted to do to get the font working in 6.x

config.xml, section   <font type="dropdown" category="Fonts" width="12" title="Fonts" parent="font">noto
            <dropdownoptions> <optgroup label="User browser"
==> Added <option class="font-CenturyGothic      " value="Century Gothic" data-font-package="">Century Gothic</option>

(in 5.x the config.xml customisation was simply<options>
<font>CenturyGothic</font>

custom.css
==> added font-face and font-family (same as 5.x)

@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/CenturyGothic.eot');
    src: local('Century Gothic'), local('CenturyGothic'),
        url('../fonts/CenturyGothic.eot?#iefix') format('embedded-opentype'),
        url('../fonts/CenturyGothic.woff2') format('woff2'),
        url('../fonts/CenturyGothic.woff') format('woff'),
        url('../fonts/CenturyGothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

etc
.font-CenturyGothic{
    font-family: 'Century Gothic';

==> Uploaded the font, same place as 5.x (extended_theme_name/fonts)

So I've confirmed that CenturyGothic is presented and selected as the option in the Vanilla_Extended options and a browser tool check confirms that the custom.css file is recognised and contains the font when the survey loads but the font displayed is the default  - noto.

Anyone know if this is a default in my implementation (which was ok in 5.x) or is this a bug in 6.x?


 
Last edit: 11 months 2 weeks ago by Leithy.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #243359 by DenisChenu
I didn't start to work on 6 theme …

If you already success to create a theme on 5.X but it don't work with the last version of 6 : i really think you can report the issue.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Leithy

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose