Question T17876
Visible to All Users

Theme Editor: default page font

created 9 months ago

I have a special font defined for my website. This font should be used everwhere were no specific font has been defined to overrule the default font setting for a page element.

On the theme settings page i have the possibility to define specific fonts from a list. The list has been extended with some custom fonts. This list is preselected with a font which got saved when some other settings were changed. This is not intended. The default first entry on the font list should always be empty and the saved property should be deleted if i select the empty entry (first entry).

Clipboard-File-1.png

Show previous comments (2)

    Hello Wolfgang,
    We will comeback to you by the end of this week on this issue. We are busy with re-writing our Theme Property Grid. We want to reuse the code we have for Property Grid in the Designer tab.

    Thank you,
    Andrew
    SurveyJS Team

      Thx Andrew, that is cool. Do you have Ticket for me which i can follow?

        Hello Wolfgang,
        We don't have ticket related to your issue. Here is the ticket that we have to finish with before we start to work on your issue. We are close to finish with this task.
        It doesn't make sense for us to implement the functionality you need since we are re-writing this part heavily. We would need to implement it twice otherwise.

        Thank you,
        Andrew
        SurveyJS Team

        Answers approved by surveyjs Support

        created 8 months ago

        Hello,

        Sorry for the delayed response. It looks like the issue is fixed in our latest build (1.10.4).
        We prepared a live plunker example - https://plnkr.co/edit/bXdhmvb5IQV7TJMR?preview
        We've checked your case on the latest version and it works ok for us: if you change any other font setting then font family for this particular component is not saved into resulting theme.

        You also can see the following commented line in the example code:

        JavaScript
        SurveyCreator.settings.themeEditor.defaultFontFamily = "RobotoMono-Regular, monospace";

        After the nearest minor update (most likely next week) you can uncomment this code and custom default font will be used everywhere in theme editor.

        Thanks, Serge
        SurveyJS Team

          Comments (3)

            Thx Serge!

            till 1.10.5 is released, this will work properly too:

            Code
            SurveyCreatorCore.settings.theme.fontFamily

              Hello Wolfgang,

              After the nearest minor update (most likely next week)

              I meant actually next week - the 1.10.6 release.

              Thanks, Serge
              SurveyJS Team

                Hello Wolfgang,

                The

                JavaScript
                SurveyCreatorCore.settings.theme.fontFamily

                Code will stop work on the next week. That's why I didn't show it in the answer.

                Thanks, Serge
                SurveyJS Team