View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19909 | Bug reports | Survey editing | public | 2024-12-20 17:28 | 2024-12-20 17:28 |
Reporter | 2BITS_PL | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 6.6.x | ||||
Summary | 19909: Issues with font handling in the custom configuration of the survey theme. | ||||
Description | While configuring a custom survey theme in LimeSurvey, I encountered several issues related to font handling:
This issue also occurs on the LimeSurvey demo site in the latest version of LimeSurvey. | ||||
Steps To Reproduce | Steps to Reproduce the Issue:
Expected Behavior:
| ||||
Tags | No tags attached. | ||||
Attached Files | custom_font_fix.twig (627 bytes)
{% set browser_fonts = [ 'georgia', 'palatino', 'times_new_roman', 'arial', 'arial_black', 'comic_sans', 'impact', 'lucida_sans', 'trebuchet', 'courier', 'lucida_console' ] %} {% set server_fonts = [ 'ibm-sans', 'ibm-serif', 'icomoon', 'lato', 'news_cycle', 'noto', 'roboto', 'opensans', 'source-sans-pro', 'raleway', 'ubuntu' ] %} {% set selected_font = aSurveyInfo.options.font %} {% if selected_font in browser_fonts %} {{ registerPackage('font-websafe') }} {% elseif selected_font in server_fonts %} {{ registerPackage('font-' ~ selected_font) }} {% endif %} | ||||
Bug heat | 0 | ||||
Complete LimeSurvey version number (& build) | 6.8.1 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | SQL Server 2022 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | v8.1.29 NTS x64 | ||||