You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117081 added TTF font not working

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by pulsarinformatique on Tuesday, 11 February 2025 15:43 GMT

pulsarinformatique

Hi

1- We added the GOTHIC.TTF file in the /httpdocs/templates/shaper_helixultimate/fonts folder

2- in the JCE profile plugin parameters / fonts family select we added Century Gothic / gothic entry

3-in the /httpdocs/templates/shaper_helixultimate/css/custom.css file we added the following lines :

@font-face {
font-family: 'Century Gothic'; // name of the font here
src: url('../fonts/GOTHIC.TTF') format('ttf'); // path to the font relative to the template.css file
font-weight: normal;
font-style: normal;
}

PS: We also tried with font-family: 'gothic';

 

4- in the back end article editor we can select the Century Gothic font which gives :

<p><span style="font-size: 36pt; font-family: gothic;">Century Gothic test</span></p>

5- however in the front end (as in the back end) the text is not using the gothic font.

What did I forget please?

 

thanks

cyril

 

 

 

Ryan

5- however in the front end (as in the back end) the text is not using the gothic font.

Please post a link to an example article

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pulsarinformatique

Yes: https://www.snrt-cgt-ftv.org/test-police

Ryan

Rewrite the @font-face entry in the custom.css file to:

@font-face {
  font-family: 'Century Gothic'; /* name of the font here */
  src: url('../fonts/GOTHIC.TTF') format('truetype'); /* path to the font relative to the template.css file */
  font-weight: normal;
  font-style: normal;
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pulsarinformatique

yes I just changed it as you wrote it but without success.

I must add I already tried to replace 'ttf' with 'truetype'

Ryan

The font-family name must be "gothic", if this is what you are using for the Font Famliy Select entry.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

pulsarinformatique

great, it's working.thanks a lot !