Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

add a font in limesurvey

More
9 years 3 months ago #135839 by Dany01
I want to import a font in Limesurvey. It's a font that we are using in our Government office.
How can I use a specific font (my personal .ttf) in a survey?
The topic has been locked.
More
9 years 3 months ago #135909 by tpartner
Replied by tpartner on topic add a font in limesurvey
Place the .tff file in your template directory and then add a font-face rule to the beginning of template.css defining the new font:

Code:
@font-face {
  font-family: 'fontName';
  src:url('fonts/fontName.ttf');
}

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: DenisChenu
The topic has been locked.
More
9 years 3 months ago #135925 by DenisChenu
Replied by DenisChenu on topic add a font in limesurvey
Attention : when you put a ttf file on internet : you distribute it.

Be sure to have this rights (or use a free font).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: tpartner, mana
The topic has been locked.
More
9 years 3 months ago #135927 by tpartner
Replied by tpartner on topic add a font in limesurvey
Yes, of course.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
9 years 3 months ago #135958 by Dany01
Replied by Dany01 on topic add a font in limesurvey
TKS for the answer
I add those lines in template editor css/template.css in my template survey
}
@font-face {
font-family: 'Hydra';
src:url('fonts/hydra-bold.ttf');
}

Do I Copy the file directlty in limesurvey\templates directory?
Cause when I creat a new survey in doesn't seems to see the font.
TKS
The topic has been locked.
More
9 years 3 months ago #135962 by tpartner
Replied by tpartner on topic add a font in limesurvey
You need to upload it to your template directory, so probably limesurvey/upload/templates/yourTemplate/

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose