Import one font into Mahara fails

Bug #1312672 reported by Dominique-Alain JAN
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon

Bug Description

After several tries to import a font file, I noticed that I mistranslated the information on the Install Font page. So the end of my bug report is irrelevant.

But, I think that because all the file format are required to import a single font, the explanation text should be more clear (maybe some text in bold?) and all the field must be specified as required (bold red *).

-dajan

<- the below part of this message became irrelevant / kept for history purpose --->

Bug 1 - A licence file seems to be needed to import a font but no information (*) is displayed to tell the user about it before the importation fails with the message : "This file is required".

Bug 2 - Even if a licence file is selected together with a font file, errors messages are still displayed
  - no file selected
  - this is not a valid xxx font file

Procedure 1 :

1/ Go to Administration -> Configure site -> Fonts
2/ Click on Install font
3/ Give a name (eg. Huxtable)
4/ Leave everything else like it is
5/ Select a TTF font file (e.g. the one attached to this bug report : Huxtable -> huxtable.ttf)
6/ Click on the "Install font" button

Expected behaviour :

The font is installed with the given name.

Real behaviour :

The follwing error messages are displayed :
   a/ This is not a valid EOT font file. (with no file selected in red)
   b/ This is not a valid SVG font file. (with no file selected in red)
   c/ This is not a valid WOFF font file. (with no file selected in red)
   d/ License file This field is required.

Procedure 2

1/ Repeat steps 1 to 5 of procedure 1
2/ Select a file for the licence (e.g. readthis.html)
3/ Click on "Install font" button

Expected behaviour :

The font is installed with the given name.

Real behaviour :

Same as in procedure 1 but without the error message : Licence file This field is required.

Propositions :

1/ Mark the field "Licence" as required (bold red *)
2/ Check if one file is selected and import it. If more than one file is selected import them. If no file is selected display an error message

-dajan

Revision history for this message
Dominique-Alain JAN (dajan) wrote :
Changed in mahara:
status: New → Invalid
status: Invalid → New
Revision history for this message
Dominique-Alain JAN (dajan) wrote :

Ok.

Found later in the manual and also misread the explanation on the top of the page, that you have to provide all the formats ! So my proposition is more simple, make clear that all fields are required (red bold *).

Sorry for the previous message.

-dajan

description: updated
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.8_STABLE" branch: https://reviews.mahara.org/3292

Revision history for this message
Robert Lyon (robertl-9) wrote :

Hi Dajan,

This has already been fixed for v1.9+

I've added a patch for 1.8
https://reviews.mahara.org/#/c/3293/

and merged it

Cheers

Robert

Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
milestone: 1.9.0 → 1.8.3
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/3295

Son Nguyen (ngson2000)
Changed in mahara:
status: Fix Committed → Fix Released
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3295
Committed: http://gitorious.org/mahara/mahara/commit/10f3d44f32c62e985644c42ed5423be05153436e
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 10f3d44f32c62e985644c42ed5423be05153436e
Author: Robert Lyon <email address hidden>
Date: Tue Apr 29 14:52:26 2014 +1200

Allowing the 'install font' to take a zip file (Bug #1312672)

When installing a normal font you have to select 4 or 5 different
files to be allowed to install the font - and most often you get these
files from 'fontSquirrel generator' in a zip file.

I've altered it so that you can either upload each file individually
or you can upload a zip file.

Change-Id: I381b2a06cf4e82c6c7bdb7b5413c620aa98eb467
Signed-off-by: Robert Lyon <email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.