mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the updated Limesurvey 1.92+ branch of queXS to trunk
This commit is contained in:
@@ -1,69 +1,69 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : makeallttffonts.php
|
||||
// Begin : 2008-12-07
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Process all TTF files on current directory to
|
||||
// build TCPDF compatible font files.
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
// (c) Copyright:
|
||||
// Nicola Asuni
|
||||
// Tecnick.com S.r.l.
|
||||
// Via della Pace, 11
|
||||
// 09044 Quartucciu (CA)
|
||||
// ITALY
|
||||
// www.tecnick.com
|
||||
// info@tecnick.com
|
||||
//
|
||||
// License:
|
||||
// Copyright (C) 2004-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||
//
|
||||
// This file is part of TCPDF software library.
|
||||
//
|
||||
// TCPDF is free software: you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// TCPDF is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// See LICENSE.TXT file for more information.
|
||||
//============================================================+
|
||||
|
||||
/**
|
||||
* Process all TTF files on current directory to build TCPDF compatible font files.
|
||||
* @package com.tecnick.tcpdf
|
||||
* @author Nicola Asuni
|
||||
* @copyright Copyright © 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @link www.tecnick.com
|
||||
* @since 2008-12-07
|
||||
*/
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
// read directory for files (only graphics files).
|
||||
$handle = opendir('.');
|
||||
while($file = readdir($handle)) {
|
||||
$path_parts = pathinfo($file);
|
||||
$file_ext = strtolower($path_parts['extension']);
|
||||
if ($file_ext == 'ttf') {
|
||||
exec('./ttf2ufm -a -F '.$path_parts['basename'].'');
|
||||
exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm');
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : makeallttffonts.php
|
||||
// Begin : 2008-12-07
|
||||
// Last Update : 2010-08-08
|
||||
//
|
||||
// Description : Process all TTF files on current directory to
|
||||
// build TCPDF compatible font files.
|
||||
//
|
||||
// Author: Nicola Asuni
|
||||
//
|
||||
// (c) Copyright:
|
||||
// Nicola Asuni
|
||||
// Tecnick.com S.r.l.
|
||||
// Via della Pace, 11
|
||||
// 09044 Quartucciu (CA)
|
||||
// ITALY
|
||||
// www.tecnick.com
|
||||
// info@tecnick.com
|
||||
//
|
||||
// License:
|
||||
// Copyright (C) 2004-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||
//
|
||||
// This file is part of TCPDF software library.
|
||||
//
|
||||
// TCPDF is free software: you can redistribute it and/or modify it
|
||||
// under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// TCPDF is distributed in the hope that it will be useful, but
|
||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
// See LICENSE.TXT file for more information.
|
||||
//============================================================+
|
||||
|
||||
/**
|
||||
* Process all TTF files on current directory to build TCPDF compatible font files.
|
||||
* @package com.tecnick.tcpdf
|
||||
* @author Nicola Asuni
|
||||
* @copyright Copyright © 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @link www.tecnick.com
|
||||
* @since 2008-12-07
|
||||
*/
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
// read directory for files (only graphics files).
|
||||
$handle = opendir('.');
|
||||
while($file = readdir($handle)) {
|
||||
$path_parts = pathinfo($file);
|
||||
$file_ext = strtolower($path_parts['extension']);
|
||||
if ($file_ext == 'ttf') {
|
||||
exec('./ttf2ufm -a -F '.$path_parts['basename'].'');
|
||||
exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm');
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
//============================================================+
|
||||
// END OF FILE
|
||||
//============================================================+
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
To embed TrueType and OpenType font files, you need to extract the
|
||||
font metrics from the font files and build the required tables using
|
||||
the utility TTF2UFM.
|
||||
|
||||
TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter
|
||||
(http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net>
|
||||
(http://www.acko.net/blog/ufpdf). That version has been further
|
||||
modified by Ulrich Telle for use with the wxWidgets component
|
||||
wxPdfDocument.
|
||||
|
||||
Following changes where made:
|
||||
|
||||
1) Generated AFM files contain the glyph number for each character.
|
||||
2) Generated UFM files contain the bounding box for each character.
|
||||
3) OpenType support has been activated for the Windows binary,
|
||||
and the generated AFM/UFM files contain the associated
|
||||
original Unicode codes for each character.
|
||||
To embed TrueType and OpenType font files, you need to extract the
|
||||
font metrics from the font files and build the required tables using
|
||||
the utility TTF2UFM.
|
||||
|
||||
TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter
|
||||
(http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net>
|
||||
(http://www.acko.net/blog/ufpdf). That version has been further
|
||||
modified by Ulrich Telle for use with the wxWidgets component
|
||||
wxPdfDocument.
|
||||
|
||||
Following changes where made:
|
||||
|
||||
1) Generated AFM files contain the glyph number for each character.
|
||||
2) Generated UFM files contain the bounding box for each character.
|
||||
3) OpenType support has been activated for the Windows binary,
|
||||
and the generated AFM/UFM files contain the associated
|
||||
original Unicode codes for each character.
|
||||
|
||||
Reference in New Issue
Block a user