- Posts: 13
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
add a font in limesurvey
- Dany01
- Topic Author
- Offline
- New Member
Less
More
7 years 11 months ago #135839
by Dany01
add a font in limesurvey was created 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?
How can I use a specific font (my personal .ttf) in a survey?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
7 years 11 months ago #135909
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 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.
- DenisChenu
- Online
- LimeSurvey Community Team
Less
More
- Posts: 13635
- Thank you received: 2491
7 years 11 months ago #135925
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 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
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tpartner, mana
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
7 years 11 months ago #135927
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 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.
- Dany01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 1
7 years 11 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
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.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10104
- Thank you received: 3593
7 years 11 months ago #135962
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 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.