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
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145075 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

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145076 by tpartner
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
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145080 by elissa

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145081 by Joffm
Hi, elissa,
I think I found the problem:
Line 1129 of "flat_and_modern. css"
Code:
body {
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
Just to try I changed this line to
Code:
font-family: "Lato", serif, "Times Roman","Helvetica Neue", Helvetica, Arial, sans-serif;
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145095 by DenisChenu
@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.

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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145096 by Joffm
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
Code:
@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic");
afterwards it was included in the LS package and included by
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 {
...
It's really strange.

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
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
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145103 by elissa
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

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.
  • elissa
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145104 by elissa
@Denis, I reported the bug ( bugs.limesurvey.org/view.php?id=11952 ) but I don't have rights to assign to you.

Cheers

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • elissa
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145111 by elissa

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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145112 by tpartner
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
  • elissa's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145117 by elissa
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

Elzbieta Lesinska
LS voluntary Polish translator and supervisor
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose