View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
19909 | Bug reports | Survey editing | public | 2024-12-20 17:28 | 2025-02-20 16:02 |
Reporter | 2BITS_PL | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | resolved | Resolution | fixed | ||
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 | 4 | ||||
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 | ||||
Issue #1 & #3: Issue #2 About Issue #2 Looks like a bug as in 3.x styles are effectively showed and now it doesn't. Think it's simply because before the Theme Options were rendered with the options.twig file of each theme, and in that file the packages were registered with the CSS of each font. Now the options are rendered with options_core.html, and the packages are not registered there. Stil, although it seems like a porting issue, it is also likely this could be a decision to abandon the preview function of the sources, so as not to have to load so many packages, its impact in performance and number of requests. |
|
Hey @gabrieljenik I noticed that .large-heading class overwrites picked font. |
|
I would handle it separately... That's something specific on Fruity TwentyThree. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-20 17:28 | 2BITS_PL | New Issue | |
2024-12-20 17:28 | 2BITS_PL | File Added: custom_font_fix.twig | |
2025-02-03 11:10 | tibor.pacalat | Assigned To | => gabrieljenik |
2025-02-03 11:10 | tibor.pacalat | Status | new => assigned |
2025-02-11 14:11 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
2025-02-11 14:11 | gabrieljenik | Status | assigned => ready for code review |
2025-02-11 14:11 | gabrieljenik | Note Added: 82001 | |
2025-02-11 14:11 | gabrieljenik | Bug heat | 0 => 2 |
2025-02-17 14:55 | tibor.pacalat | Note Added: 82039 | |
2025-02-17 14:55 | tibor.pacalat | Bug heat | 2 => 4 |
2025-02-17 14:55 | tibor.pacalat | Assigned To | DenisChenu => gabrieljenik |
2025-02-18 15:22 | gabrieljenik | Note Added: 82069 | |
2025-02-20 16:02 | tibor.pacalat | Status | ready for code review => resolved |
2025-02-20 16:02 | tibor.pacalat | Resolution | open => fixed |