Essential Theme doesn't recognize some fonts

Essential Theme doesn't recognize some fonts

by Ahmed Nobani -
Number of replies: 8

Hi

i was using moodle 2.5 and i'm using Times new roman and courier new as standard fonts for courses formatting.

now, after upgrading to moodle 2.9 and start using essential theme i'v faced a problem that old courses lables doesn't show the fonts correctly 

thanls  smile


Average of ratings: -
In reply to Ahmed Nobani

Re: Essential Theme doesn't recognize some fonts

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

A few usual questions:

  1. What version of Essential are you now running?
  2. What are the values in the 'Fonts' area of the settings?
Screen shot of issue clearly showing the fault please.


In reply to Gareth J Barnard

Re: Essential Theme doesn't recognize some fonts

by Ahmed Nobani -
Hi Gareth


1- right now i'm running the latest version of  essential 2.9.1.6 (Build: 2015062419) 

and 2.9.3 for moodle

2- fonts setting is the default as shown in the attached screenshot


the green font is courier new and the black one is times new roman .. when i get back to clean theme everything is ok

but with essential they look different (notice the different in the attachment)

 attach 1



fonts

In reply to Ahmed Nobani

Re: Essential Theme doesn't recognize some fonts

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
  • Why have you not entered the name of the fonts as appropriate where it says so?
  • How did you create the material you have shown me and therefore how can I replicate the problem?
In reply to Gareth J Barnard

Re: Essential Theme doesn't recognize some fonts

by Ahmed Nobani -

Gareth thank you

- where do you mean i have to enter the name of the fonts? and can i enter more than one name?

- how i created the material ? simply by labels,, all the text in my courses is entered manually in labels.

- how can you replicate the problem? i don't know

the thing is why in the same label some sentences are fine and the others are not (please see these two pics)  

view

---------------------------------------

edit

when i go to edit label the font courier new appears fine, the same for times new roman font, when i cancel editing and go back to the course main page without edit anything , some sentences appear fine and other not.


* no problem in clean theme

smile 

 

In reply to Ahmed Nobani

Re: Essential Theme doesn't recognize some fonts

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, looks like a bug where sometimes - with linked text - the set inline font-family can be overridden by the theme.  https://github.com/gjb2048/moodle-theme_essential/issues/616 raised.

In reply to Gareth J Barnard

Re: Essential Theme doesn't recognize some fonts

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Fixed in: https://github.com/gjb2048/moodle-theme_essential/commit/5737a9df91452208dda7afd233fb11afeb2934b3 - will be in next release for M2.9 and 3.0.

In the mean time, try the custom CSS:

a {
  font-family: inherit;
}

in the theme Custom CSS box under the general settings.

In reply to Gareth J Barnard

Re: Essential Theme doesn't recognize some fonts

by Ahmed Nobani -

hi Gareth

i commented  these two lines then everything went ok.

file name: toolbox.php

file path: \moodle\theme\essential\classes

line 1:  $familyreplacement = 'Verdana'; (line number: 356).

line 2: $familyreplacement = 'Verdana'; (line number: 395).


thanks for your hard work Gareth.



Average of ratings: Useful (1)