fbpx

An Exclusive Offer For You To Grab JD Builder Pro Check Deal of The Day

Welcome, Guest
Username: Password: Remember me

Like using Astroid?

Help us improve Astroid by providing some quick feedback.

Take the survey
  • Page:
  • 1
  • 2

TOPIC: Naming custom fonts

Naming custom fonts 2 months 3 weeks ago #17619

  • iorbita
  • iorbita's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 1
  • Karma: 0
Hello :)
I installed two fonts following the procedure described in your documentation.

Here are my two fonts in otf format:
  • VentiCF-Regular.otf
  • VentiCF-RegularItalic.otf

Astroid names font-family property like this:
font-family: Venti CF Regular

The problem is that italic version is not taken into account when it is written in my custom.css file, I tried to name it in different ways (Venti CF Regular Italic, Venti CF RegularItalic, ...) without success.

Do I have to think that italic font is only taken into account with font-style property (font-style: italic;)?

Many thanks,
Lorenzo
Last Edit: 2 months 3 weeks ago by iorbita.
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17620

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3115
  • Thank you received: 469
  • Karma: 101
Hi Lorenzo,

This should come up as 2 different fonts first of all. May be it's font-style:italic, Have you tried it using the developer console and see if that works?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17621

  • iorbita
  • iorbita's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 1
  • Karma: 0
Hello Chetan,
I just tried something, the Italic version is not taken into account when it is written in my custom.css file, however when it is chosen in the template options it is displayed correctly, strange because it's named exactly as I named it in my custom.css file (I looked in developer console) :pinch:
Last Edit: 2 months 3 weeks ago by iorbita.
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17623

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3115
  • Thank you received: 469
  • Karma: 101
I think when we extract the name of the font via PHP library it considers the italtic version no different then the regular version. We'll add a patch and get back to you Lorenzo.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
The following user(s) said Thank You: iorbita

Naming custom fonts 2 months 3 weeks ago #17629

  • iorbita
  • iorbita's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 1
  • Karma: 0
... that's so kind of you, thank you :)
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17634

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3115
  • Thank you received: 469
  • Karma: 101
I tried two different variations of Poppins and both showed up fine in the list.
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17638

  • iorbita
  • iorbita's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 1
  • Karma: 0
I tried two different variations of Poppins and both showed up fine in the list.
Hello Chetan,
... this is not really the point, on my side also the font is displayed in the droplist, the problem is that it is not displayed when it is written in a css rule inside my custom.css file.



I tried with another style (medium style) of the same font family (Venti CF Medium) and this time the font is displayed correctly even if it is written in my custom.css file, BUT on the other hand, if I try to display "Venti CF Medium Italic" font via my custom.css file here also it is not displayed, so it seems there is a problem with the word "Italic" in the custom.css file

This problem is present also if the rule is written directly in template's "Custom CSS" options, in this case also font is not displayed.



Finally to summarize my problem, italic fonts of the same font family are only displayed if they are chosen in the template's dropdown list, they are not displayed if the rule is written in my custom.css file or in template's "Custom CSS" options.

Many thanks,

Lorenzo
The administrator has disabled public write access.

Naming custom fonts 2 months 3 weeks ago #17641

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3115
  • Thank you received: 469
  • Karma: 101
Hi Lorenzo,

Thanks for the brief explanation. I'll run some tests again.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Naming custom fonts 2 months 2 weeks ago #17718

  • iorbita
  • iorbita's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 1
  • Karma: 0
Hello Chetan,
did you by chance check my font issue ? ...because I have the same problem with another font that is not italic ... :pinch:

Thank you,

Lorenzo

The administrator has disabled public write access.

Naming custom fonts 2 months 2 weeks ago #17720

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 3115
  • Thank you received: 469
  • Karma: 101
Lorenzo,

I haven't been able to reproduce this with other fonts, could you possibly email me those fonts please This email address is being protected from spambots. You need JavaScript enabled to view it., just so I can test the specific one's?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: chandandeep
Time to create page: 0.209 seconds