- Posts: 195
- Thank you received: 70
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Font in the default template (language specific characters)
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
7 years 3 months ago #145075
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Font in the default template (language specific characters) was created by elissa
Sorry for the basic question but I couldn't find the solution. I use LS 2.56.1+161118 with the default template and the problem is that the Polish specific characters do not look good in the bold style. As I understand the default template uses "Lato" font which is nice, has many variants and generally perfectly supports Polish characters. In the attached screenshot you can see that the specific characters (ś, ń, Ł etc.) are stronger than the other characters in bold. It's OK with a normal font weight. The problem occurs both on PC with Windows 10 and mobile with Android (I haven't tested other systems). How can I correct it? Unfortunately, other basic templates do not fully support Polish characters as well.
Cheers
Cheers
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 3 months ago #145076
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Font in the default template (language specific characters)
Can you activate a test survey with some of those characters?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
7 years 3 months ago #145080
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Font in the default template (language specific characters)
Here is the link:
survey.cem.pl/index.php/564381?lang=pl
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
7 years 3 months ago #145081
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Font in the default template (language specific characters)
Hi, elissa,
I think I found the problem:
Line 1129 of "flat_and_modern. css"
Just to try I changed this line to
and I saw that now your Polish characters are displayed in a "serif" font. (screenshot)
So the implementation of "Lato" seems to be incomplete.
Best regards
Joffm
I think I found the problem:
Line 1129 of "flat_and_modern. css"
Code:
body { font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
Code:
font-family: "Lato", serif, "Times Roman","Helvetica Neue", Helvetica, Arial, sans-serif;
So the implementation of "Lato" seems to be incomplete.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
7 years 3 months ago - 7 years 3 months ago #145095
by DenisChenu
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.
Replied by DenisChenu on topic Font in the default template (language specific characters)
@elissa : can you report the bug to mantis and assign it to me. I think default template must be compatible with ALL language.
The 2 solution :
1. use a fixed Lato font
2. use a "well know" font.
Think 2 is the best solution, but must be discussed with other dev.
Denis
PS : best to use font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; directly.
PS : i think for 3.0 version.
The 2 solution :
1. use a fixed Lato font
2. use a "well know" font.
Think 2 is the best solution, but must be discussed with other dev.
Denis
PS : best to use font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; directly.
PS : i think for 3.0 version.
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.
Last edit: 7 years 3 months ago by DenisChenu.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
7 years 3 months ago - 7 years 3 months ago #145096
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Font in the default template (language specific characters)
Hi, elissa,
very strange.
Today I wanted to investigate further, and found that I only can reproduce the "serif" font, if I copy the default template and change this font-family.
If I only change the original default template and use it, I see the same as you.
If I copy this changed original I see the serif.
Anyway: With the update of the 17th of August the handling of fonts was changed.
Before it was imported by
afterwards it was included in the LS package and included by
It's really strange.
But IMHO the best solution is:
Change the font from "bold" to "normal" by adding this to the template.css
I have not the least idea what is the reason to have the subquestion text and answer option text "bold" in array questions.
In all other question types subquestions are displayed "normal".
This also happened in an update mid august.
Best regards
Joffm
very strange.
Today I wanted to investigate further, and found that I only can reproduce the "serif" font, if I copy the default template and change this font-family.
If I only change the original default template and use it, I see the same as you.
If I copy this changed original I see the serif.
Anyway: With the update of the 17th of August the handling of fonts was changed.
Before it was imported by
Code:
@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic");
Code:
/* lato-regular - latin */ @font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; src: url('../fonts/lato-v11-latin-regular.eot'); /* IE9 Compat Modes */ src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/lato-v11-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/lato-v11-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/lato-v11-latin-regular.woff') format('woff'), /* Modern Browsers */ url('../fonts/lato-v11-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/lato-v11-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */ } /* lato-italic - latin */ @font-face { ...
But IMHO the best solution is:
Change the font from "bold" to "normal" by adding this to the template.css
Code:
th.th-9.text-center, .table > tbody > tr > th {font-weight:normal;}
I have not the least idea what is the reason to have the subquestion text and answer option text "bold" in array questions.
In all other question types subquestions are displayed "normal".
This also happened in an update mid august.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 7 years 3 months ago by Joffm. Reason: Ergänzung
The following user(s) said Thank You: elissa
The topic has been locked.
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
7 years 3 months ago #145103
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Font in the default template (language specific characters)
Hi,
Thanks a lot for the help. I further tested the survey on a laptop where I have the Lato font installed locally and everything looked good including bold text (I assume that this is because of the local font installation). I'm not an expert in coding so I'll change the font to normal in templates.css as suggested by Joffm. Nevertheless, it would be good if the default template worked for everybody without a need to modify anything (I'll report a bug). I'll also be happy if the two other initially installed templates be more universal. This shouldn't be so difficult nowadays.
Cheers
Thanks a lot for the help. I further tested the survey on a laptop where I have the Lato font installed locally and everything looked good including bold text (I assume that this is because of the local font installation). I'm not an expert in coding so I'll change the font to normal in templates.css as suggested by Joffm. Nevertheless, it would be good if the default template worked for everybody without a need to modify anything (I'll report a bug). I'll also be happy if the two other initially installed templates be more universal. This shouldn't be so difficult nowadays.
Cheers
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
7 years 3 months ago #145104
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Font in the default template (language specific characters)
@Denis, I reported the bug (
bugs.limesurvey.org/view.php?id=11952
) but I don't have rights to assign to you.
Cheers
Cheers
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
7 years 3 months ago #145111
by elissa
Hi Joffm,
I put the code to the end of template.css in a copy of the default template but it doesn't work, i.e. the table text in rows is still in bold. What am I doing wrong?
Best regards
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Font in the default template (language specific characters)
Joffm wrote: Change the font from "bold" to "normal" by adding this to the template.css
Code:th.th-9.text-center, .table > tbody > tr > th {font-weight:normal;}
Hi Joffm,
I put the code to the end of template.css in a copy of the default template but it doesn't work, i.e. the table text in rows is still in bold. What am I doing wrong?
Best regards
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
7 years 3 months ago #145112
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Font in the default template (language specific characters)
Adding this to the end of template.css should force the array row labels to normal weight (don't forget to clear your cache before testing):
Code:
th.answertext { font-weight: normal; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: elissa
The topic has been locked.
- elissa
- Topic Author
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
7 years 3 months ago #145117
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Font in the default template (language specific characters)
Joffm, Tony,
I'm sorry for the confusion, but I created too many copies of templates and surveys to test them. Both your soultions work well. Thank you very much.
Cheers
I'm sorry for the confusion, but I created too many copies of templates and surveys to test them. Both your soultions work well. Thank you very much.
Cheers
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.