ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
tcpdf_addfont.php File Reference

This is a command line script to generate TCPDF fonts. More...

Go to the source code of this file.

Namespaces

 com\tecnick\tcpdf
 Configuration file for TCPDF.
 

Functions

foreach($tcpdf_include_dirs as $tcpdf_include_path) showHelp ()
 Display help guide for this command. More...
 

Variables

if(php_sapi_name() !='cli') $tcpdf_include_dirs = array(realpath(dirname(__FILE__).'/../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php')
 
if(!is_array($argv)) $options = array('type'=>'', 'enc'=>'', 'flags'=>32, 'outpath'=>K_PATH_FONTS, 'platid'=>3, 'encid'=>1, 'addcbbox'=>false, 'link'=>false)
 
 $sopt = ''
 
 $lopt = array()
 
 $lopt [] = 'type:'
 
 $inopt = getopt($sopt, $lopt)
 
foreach($inopt as $opt=> $val) if(empty($options['fonts'])) if (!is_dir( $options[ 'outpath']) OR !is_writable( $options[ 'outpath']))
 
 $errors = false
 

Detailed Description

This is a command line script to generate TCPDF fonts.


Definition in file tcpdf_addfont.php.

Function Documentation

◆ showHelp()

foreach ( $tcpdf_include_dirs as $tcpdf_include_path) showHelp ( )

Display help guide for this command.

Definition at line 60 of file tcpdf_addfont.php.

References $argv, convert(), data, e(), EOD, exit, file, files, font, fonts, input, n, p, and to.

60  {
61  $help = <<<EOD
62 tcpdf_addfont - command line tool to convert fonts for the TCPDF library.
63 
64 Usage: tcpdf_addfont.php [ options ] -i fontfile[,fontfile]...
65 
66 Options:
67 
68  -t
69  --type Font type. Leave empty for autodetect mode.
70  Valid values are:
71  TrueTypeUnicode
72  TrueType
73  Type1
74  CID0JP = CID-0 Japanese
75  CID0KR = CID-0 Korean
76  CID0CS = CID-0 Chinese Simplified
77  CID0CT = CID-0 Chinese Traditional
78 
79  -e
80  --enc Name of the encoding table to use. Leave empty for
81  default mode. Omit this parameter for TrueType Unicode
82  and symbolic fonts like Symbol or ZapfDingBats.
83 
84  -f
85  --flags Unsigned 32-bit integer containing flags specifying
86  various characteristics of the font (PDF32000:2008 -
87  9.8.2 Font Descriptor Flags): +1 for fixed font; +4 for
88  symbol or +32 for non-symbol; +64 for italic. Fixed and
89  Italic mode are generally autodetected so you have to
90  set it to 32 = non-symbolic font (default) or 4 =
91  symbolic font.
92 
93  -o
94  --outpath Output path for generated font files (must be writeable
95  by the web server). Leave empty for default font folder.
96 
97  -p
98  --platid Platform ID for CMAP table to extract (when building a
99  Unicode font for Windows this value should be 3, for
100  Macintosh should be 1).
101 
102  -n
103  --encid Encoding ID for CMAP table to extract (when building a
104  Unicode font for Windows this value should be 1, for
105  Macintosh should be 0). When Platform ID is 3, legal
106  values for Encoding ID are: 0=Symbol, 1=Unicode,
107  2=ShiftJIS, 3=PRC, 4=Big5, 5=Wansung, 6=Johab,
108  7=Reserved, 8=Reserved, 9=Reserved, 10=UCS-4.
109 
110  -b
111  --addcbbox Includes the character bounding box information on the
112  php font file.
113 
114  -l
115  --link Link to system font instead of copying the font data #
116  (not transportable) - Note: do not work with Type1 fonts.
117 
118  -i
119  --fonts Comma-separated list of input font files.
120 
121  -h
122  --help Display this help and exit.
123 EOD;
124  echo $help."\n\n";
125  exit(0);
126 }
127 
128 // remove the name of the executing script
129 array_shift($argv);
130 
131 // no options chosen
132 if (!is_array($argv)) {
133  showHelp();
134 }
135 
136 // initialize the array of options
137 $options = array('type'=>'', 'enc'=>'', 'flags'=>32, 'outpath'=>K_PATH_FONTS, 'platid'=>3, 'encid'=>1, 'addcbbox'=>false, 'link'=>false);
138 
139 // short input options
140 $sopt = '';
141 $sopt .= 't:';
142 $sopt .= 'e:';
143 $sopt .= 'f:';
144 $sopt .= 'o:';
145 $sopt .= 'p:';
146 $sopt .= 'n:';
147 $sopt .= 'b';
148 $sopt .= 'l';
149 $sopt .= 'i:';
150 $sopt .= 'h';
151 
152 // long input options
153 $lopt = array();
154 $lopt[] = 'type:';
155 $lopt[] = 'enc:';
156 $lopt[] = 'flags:';
157 $lopt[] = 'outpath:';
158 $lopt[] = 'platid:';
159 $lopt[] = 'encid:';
160 $lopt[] = 'addcbbox';
161 $lopt[] = 'link';
162 $lopt[] = 'fonts:';
163 $lopt[] = 'help';
164 
165 // parse input options
166 $inopt = getopt($sopt, $lopt);
167 
168 // import options (with some sanitization)
169 foreach ($inopt as $opt => $val) {
170  switch ($opt) {
171  case 't':
172  case 'type': {
173  if (in_array($val, array('TrueTypeUnicode', 'TrueType', 'Type1', 'CID0JP', 'CID0KR', 'CID0CS', 'CID0CT'))) {
174  $options['type'] = $val;
175  }
176  break;
177  }
178  case 'e':
179  case 'enc': {
180  $options['enc'] = $val;
181  break;
182  }
183  case 'f':
184  case 'flags': {
185  $options['flags'] = intval($val);
186  break;
187  }
188  case 'o':
189  case 'outpath': {
190  $options['outpath'] = realpath($val);
191  if (substr($options['outpath'], -1) != '/') {
192  $options['outpath'] .= '/';
193  }
194  break;
195  }
196  case 'p':
197  case 'platid': {
198  $options['platid'] = min(max(1, intval($val)), 3);
199  break;
200  }
201  case 'n':
202  case 'encid': {
203  $options['encid'] = min(max(0, intval($val)), 10);
204  break;
205  }
206  case 'b':
207  case 'addcbbox': {
208  $options['addcbbox'] = true;
209  break;
210  }
211  case 'l':
212  case 'link': {
213  $options['link'] = true;
214  break;
215  }
216  case 'i':
217  case 'fonts': {
218  $options['fonts'] = explode(',', $val);
219  break;
220  }
221  case 'h':
222  case 'help':
223  default: {
224  showHelp();
225  break;
226  }
227  } // end of switch
228 } // end of while loop
229 
230 if (empty($options['fonts'])) {
231  echo "ERROR: missing input fonts (try --help for usage)\n\n";
232  exit(2);
233 }
234 
235 // check the output path
236 if (!is_dir($options['outpath']) OR !is_writable($options['outpath'])) {
237  echo "ERROR: Can't write to ".$options['outpath']."\n\n";
238  exit(3);
239 }
240 
241 echo "\n>>> Converting fonts for TCPDF:\n";
242 
243 echo '*** Output dir set to '.$options['outpath']."\n";
244 
245 // check if there are conversion errors
246 $errors = false;
247 
248 foreach ($options['fonts'] as $font) {
249  $fontfile = realpath($font);
250  $fontname = TCPDF_FONTS::addTTFfont($fontfile, $options['type'], $options['enc'], $options['flags'], $options['outpath'], $options['platid'], $options['encid'], $options['addcbbox'], $options['link']);
251  if ($fontname === false) {
252  $errors = true;
253  echo "--- ERROR: can't add ".$font."\n";
254  } else {
255  echo "+++ OK : ".$fontfile.' added as '.$fontname."\n";
256  }
257 }
258 
259 if ($errors) {
260  echo "--- Process completed with ERRORS!\n\n";
261  exit(4);
262 }
File written to
static addTTFfont($fontfile, $fonttype='', $enc='', $flags=32, $outpath='', $platid=3, $encid=1, $addcbbox=false, $link=false)
Convert and add the selected TrueType or Type1 font to the fonts folder (that must be writeable)...
Definition: tcpdf_fonts.php:72
Add some data
convert($file)
Definition: HFile_conv.php:137
for( $i=1;$i< 200;$i++)
Holds the type of the event to listen for.
Definition: 04printing.php:58
if(! $in) print Initializing normalization quick check tables n
p
Definition: langcheck.php:169
Set default font
Definition: 02types-xls.php:55
PHP class for generating PDF documents without requiring external extensions.
Definition: tcpdf.php:134
$argv
$inopt
foreach($tcpdf_include_dirs as $tcpdf_include_path) showHelp()
Display help guide for this command.
Set fonts
if(!is_array($argv)) $options
input
Definition: langcheck.php:166
e($cmd)
Definition: flush.php:14
Reload workbook from saved file
EOD
Definition: example_053.php:93
Create styles array
The data for the language used.
$errors
Done writing files
+ Here is the call graph for this function:

Variable Documentation

◆ $errors

$errors = false

Definition at line 246 of file tcpdf_addfont.php.

Referenced by assQuestionGUI\buildEditForm(), ilMail\checkMail(), ilMail\checkRecipients(), ilAssQuestionSkillAssignmentsGUI\checkSolutionCompareExpressionInput(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilUnitConfigurationGUI\confirmDeleteUnits(), ilUnitConfigurationGUI\deleteCategories(), ilUnitConfigurationGUI\deleteUnits(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), ilAsyncPropertyFormGUI\getErrors(), ilMail\getSavedData(), Whoops\Util\Misc\isLevelFatal(), ilUtil\isPassword(), assFormulaQuestionGUI\isSaveCommand(), SurveyQuestionGUI\material(), ilDBPdoMySQL\migrateAllTablesToEngine(), ilRoleXmlImporter\parseXmlErrors(), ilDidacticTemplateImport\parseXmlErrors(), ilLOXmlParser\parseXmlErrors(), ilSurveyPhrasesGUI\phraseEditor(), ilTestRandomQuestionSetConfigGUI\saveCreateSourcePoolDefinitionFormCmd(), ilMailFormGUI\saveDraft(), ilTestRandomQuestionSetConfigGUI\saveEditSourcePoolDefinitionFormCmd(), assOrderingHorizontalGUI\saveFeedback(), ilObjQuestionPoolSettingsGeneralGUI\saveFormCmd(), ilObjTestSettingsScoringResultsGUI\saveFormCmd(), ilObjTestDynamicQuestionSetConfigGUI\saveFormCmd(), ilObjTestSettingsGeneralGUI\saveFormCmd(), ilTestRandomQuestionSetConfigGUI\saveGeneralConfigFormCmd(), ilMailFormGUI\sendMessage(), assErrorText\setErrorData(), ilPageObject\update(), ilSurveyParticipantsGUI\updateCodesObject(), ilValidatorAdapter\validate(), ilADTGroupFormBridge\validate(), SurveyMultipleChoiceQuestionGUI\validateEditForm(), and ilMail\validateRecipients().

◆ $inopt

$inopt = getopt($sopt, $lopt)

Definition at line 166 of file tcpdf_addfont.php.

◆ $lopt [1/2]

$lopt = array()

Definition at line 153 of file tcpdf_addfont.php.

◆ $lopt [2/2]

$lopt[] = 'type:'

Definition at line 154 of file tcpdf_addfont.php.

◆ $options

if (!is_array( $argv)) $options = array('type'=>'', 'enc'=>'', 'flags'=>32, 'outpath'=>K_PATH_FONTS, 'platid'=>3, 'encid'=>1, 'addcbbox'=>false, 'link'=>false)

Definition at line 137 of file tcpdf_addfont.php.

Referenced by ilRegistrationSettingsGUI\__buildAccessLimitationSelection(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildDaysSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), ilMDEditorGUI\__buildMonthsSelect(), Assetic\Extension\Twig\AsseticFilterFunction\__construct(), ilQueryUtils\__construct(), Assetic\Extension\Twig\AsseticExtension\__construct(), Assetic\Factory\Loader\BasePhpFormulaLoader\__construct(), ilAuthContainerMDB2\__construct(), FormMailCodesGUI\__construct(), ilAuthApache\__construct(), HTML_Template_IT\__construct(), Securimage\__construct(), PEAR_Error\__construct(), ilAdvancedSearch\__getDifference(), ilAccountRegistrationGUI\__initForm(), ilMDEditorGUI\__setTabs(), _assetic_urls(), HTTP_WebDAV_Server\_copymove(), HTTP_WebDAV_Server\_get_ranges(), ilMDUtilSelect\_getBrowserSelect(), ilMDUtilSelect\_getContextSelect(), ilMDUtilSelect\_getCopyrightAndOtherRestrictionsSelect(), ilMDUtilSelect\_getCostsSelect(), MDB2_Driver_Manager_Common\_getCreateTableQuery(), ilMDUtilSelect\_getDifficultySelect(), ilMDUtilSelect\_getDurationSelect(), ilMDUtilSelect\_getFormatSelect(), ilMDUtilSelect\_getIntendedEndUserRoleSelect(), ilMDUtilSelect\_getInteractivityLevelSelect(), ilMDUtilSelect\_getInteractivityTypeSelect(), ilMDUtilSelect\_getLanguageSelect(), ilMDUtilSelect\_getLearningResourceTypeSelect(), ilMDUtilSelect\_getLocationTypeSelect(), ilAuthUtils\_getMultipleAuthModeOptions(), ilMDUtilSelect\_getOperatingSystemSelect(), ilMDUtilSelect\_getPurposeSelect(), ilMDUtilSelect\_getRoleSelect(), ilUserSearchOptions\_getSearchableFieldsInfo(), ilMDUtilSelect\_getSemanticDensitySelect(), ilMDUtilSelect\_getStatusSelect(), ilMDUtilSelect\_getStructureSelect(), ilMDUtilSelect\_getTypicalAgeRangeSelect(), ilMDUtilSelect\_getTypicalLearningTimeSelect(), ilObject\_prepareCloneSelection(), PHPExcel_Reader_Excel5\_readDataValidation(), PHPExcel_Reader_Excel5\_readExternName(), PHPExcel_Reader_Excel5\_readFormula(), PHPExcel_Reader_Excel5\_readSheetProtection(), PHPExcel_Reader_Excel5\_readWindow2(), PHPExcel_Writer_Excel5_Worksheet\_writeDataValidity(), PHPExcel_Writer_Excel5_Worksheet\_writeSheetProtection(), PHPExcel_Writer_Excel5_Worksheet\_writeUrlInternal(), PHPExcel_Writer_Excel5_Worksheet\_writeUrlWeb(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilSCCronTrash\addCustomSettingsToForm(), ilCloudPluginFileTreeGUI\addDropZone(), ilDclRatingFieldRepresentation\addFilterInputFieldToTable(), ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilTable2GUI\addFilterItemByMetaType(), ilLMChapterImportForm\addNode(), Assetic\Factory\Loader\BasePhpFormulaLoader\addPrototype(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilUserProfile\addStandardFieldsToForm(), ilSystemStyleOverviewGUI\addSubStyleForms(), ilADTMultiEnumFormBridge\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTEnumFormBridge\addToForm(), ilADTEnumSearchBridgeMulti\addToForm(), ilExcCriteriaBool\addToPeerReviewForm(), ilExAssignmentEditorGUI\adoptTeamAssignmentsFormObject(), ilDidacticTemplateGUI\appendToolbarSwitch(), ilChatroomFormFactory\applyValues(), assetic_image(), assetic_javascripts(), assetic_stylesheets(), ilPersonalSkillsGUI\assignMaterials(), ilCloudPluginUploadGUI\asyncUploadFile(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilPageObject\buildDom(), ilTestSkillEvaluationToolbarGUI\buildEvaluationModeOptionsArray(), ilDclPluginFieldRepresentation\buildFieldCreationInput(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilObjTestGUI\buildPageViewToolbar(), ilObjTestDynamicQuestionSetConfigGUI\buildTaxonomySelectInputOptionJson(), ilDclNReferenceFieldGUI\buildTemplate(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), Securimage\checkByCaptchaId(), ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilSoapUtils\cloneNode(), ilObject\cloneObject(), ilLOTestAssignment\cloneSettings(), ilLOSettings\cloneSettings(), ilSystemStyleOverviewGUI\cloneSystemStyleForm(), ilSurveyParticipantsGUI\codesObject(), Assetic\Filter\Yui\BaseCompressorFilter\compress(), ilDBPdo\connect(), SMTP\connect(), MDB2\connect(), ilSurveyConstraintsGUI\constraintForm(), ilLORandomTestQuestionPools\copy(), ilDAVServer\COPY(), ilObjContentObject\copyAllPagesAndChapters(), ilObjectCopyGUI\copyContainer(), ilSoapObjectAdministration\copyObject(), Assetic\Factory\AssetFactory\createAsset(), Assetic\Factory\AssetFactory\createAssetCollection(), ilSCORMExplorer\createOutputArray(), ilDBPdoManager\createSequence(), MDB2_Driver_Manager_mysql\createSequence(), MDB2_Driver_Manager_mysqli\createSequence(), ilDclRecordListGUI\createSwitchers(), ilPostgresQueryUtils\createTable(), ilDBPdoManagerPostgres\createTable(), ilMySQLQueryUtils\createTable(), MDB2_Driver_Manager_mysql\createTable(), MDB2_Driver_Manager_mysqli\createTable(), MDB2_Driver_Manager_Common\createTable(), ilDBPdoManager\createTable(), ilDB\createTable(), ilDclTableEditGUI\createTableSwitcher(), ilExSubmissionTeamGUI\createTeamObject(), ilDAVServer\DELETE(), ilPCResourcesGUI\edit(), ilPCLoginPageElementGUI\edit(), ilSystemStyleOverviewGUI\edit(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilAdvancedMDSettingsGUI\editFields(), ilObjWikiGUI\editImportantPagesObject(), ilObjExternalToolsSettingsGUI\editMathJaxObject(), ilObjTypeDefinitionGUI\editObject(), ilObjHelpSettingsGUI\editSettings(), ilObjNewsSettingsGUI\editSettings(), ilObjStyleSheetGUI\editTagStyleObject(), ilECSSettingsGUI\exportMappings(), ilAuthFactory\factory(), MDB2\factory(), Parser\fetchScaryTemplateMaybeFromCache(), ilTable2GUI\fillFooter(), ilAdvancedMDRecordTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), Assetic\Filter\Yui\JsCompressorFilter\filterDump(), ilUtil\formSelect(), ilObjTestGUI\formTimingObject(), Assetic\Factory\AssetFactory\generateAssetName(), Assetic\Factory\LazyAssetManager\get(), ilDAVServer\GET(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilDBPdo\getAttributes(), ilECSMappingUtils\getAuthModeSelection(), ilDclRecordListGUI\getAvailableTables(), ilCharSelectorConfig\getBlockOptions(), Title\getBrokenLinksFrom(), Securimage\getCaptchaId(), ilNotificationAdminSettingsForm\getChannelForm(), ilChatroomUser\getChatNameSuggestions(), ilECSMappingUtils\getCourseMappingFieldSelectOptions(), ilSearchBaseGUI\getCreationDateForm(), ilDAVServer\getDir(), ilObjForum\getDiskUsage(), ilWorkflowLauncherGUI\getForm(), ilNotificationAdminSettingsForm\getGeneralSettingsForm(), ilConsultationHourGroups\getGroupSelectOptions(), Monolog\Handler\PHPConsoleHandlerTest\getHandlerDefaultOption(), ilCalendarUtil\getHourSelection(), ilADTEnumPresentationBridge\getHTML(), ilADTMultiEnumPresentationBridge\getHTML(), ilFileUploadGUI\getHTML(), ilAccordionGUI\getHTML(), ilDclReferenceFieldRepresentation\getInputField(), ilRegistrationCodesTableGUI\getItems(), Title\getLinksTo(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilLPTableBaseGUI\getMonthsFilter(), ilMultilingualismGUI\getMultiLangForm(), ilObjectTranslationGUI\getMultiLangForm(), ilTestParticipantData\getOptionArray(), ilExplorer\getOutput(), SurveySingleChoiceQuestionGUI\getParsedAnswers(), SurveyMultipleChoiceQuestionGUI\getParsedAnswers(), SurveyMatrixQuestionGUI\getParsedAnswers(), ilTestResultsToolbarGUI\getParticipantSelectorOptionsWithHintOption(), ilECSCategoryMapping\getPossibleFields(), ilLPTableBaseGUI\getPossibleTypes(), SurveyMultipleChoiceQuestion\getPreconditionOptions(), SurveySingleChoiceQuestion\getPreconditionOptions(), SurveyMultipleChoiceQuestion\getPreconditionSelectValue(), SurveySingleChoiceQuestion\getPreconditionSelectValue(), SurveyMatrixQuestion\getPreconditionSelectValue(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), Symfony\Component\Process\Tests\ProcessTest\getProcess(), ilCourseObjectivesGUI\getRandomTestQplOptions(), ilDclBaseRecordModel\getRecordFieldHTML(), ilDclBaseRecordModel\getRecordFieldSortingValue(), ilWorkflowArmerGUI\getRepositoryObjectSelector(), ilTrSummaryTableGUI\getSelCountryCodes(), ilDclNReferenceFieldGUI\getSingleHTML(), ilDclNReferenceRecordFieldModel\getSingleHTML(), ilBuddySystemRelationStateFactory\getStatesAsOptionArray(), ilDBPdoManagerPostgres\getTableCreationQuery(), MDB2_Driver_Manager_mysqli\getTableCreationQuery(), MDB2_Driver_Manager_Common\getTableCreationQuery(), ilDBPdoManager\getTableCreationQuery(), ilMailFormGUI\getTemplateDataById(), Title\getTemplateLinksTo(), ilPageContentGUI\getTemplateOptions(), ilPCIIMTriggerEditorGUI\getToolbar(), ilImageMapEditorGUI\getToolbar(), ilNotificationAdminSettingsForm\getTypeForm(), TCPDF_STATIC\getUserPermissionCode(), ilObjUserGUI\getValues(), HTTP_WebDAV_Server\http_DELETE(), HTTP_WebDAV_Server\http_GET(), HTTP_WebDAV_Server\http_HEAD(), HTTP_WebDAV_Server\http_LOCK(), HTTP_WebDAV_Server\http_MKCOL(), HTTP_WebDAV_Server\http_PROPFIND(), HTTP_WebDAV_Server\http_PROPPATCH(), HTTP_WebDAV_Server\http_PUT(), HTTP_WebDAV_Server\http_UNLOCK(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), ilECSSettingsGUI\imported(), ilECSSettingsGUI\importMappings(), ilObjMediaCastGUI\initAddCastItemForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilObjLanguageExtGUI\initAddNewEntryForm(), ilPageLayoutAdministrationGUI\initAddPageLayoutForm(), ilBadgeManagementGUI\initBadgeForm(), ilLPTableBaseGUI\initBaseFilter(), ilSetupGUI\initBasicSettingsForm(), ilObjPortfolioGUI\initBlogForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilPageEditorGUI\initCharacteristicForm(), ilSetupGUI\initClientDbForm(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCreateForm(), ilSetupGUI\initDBSelectionForm(), ilObjectGUI\initDidacticTemplate(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilParticipantTableGUI\initFilter(), ilObjectBadgeTableGUI\initFilter(), ilPDNewsTableGUI\initFilter(), ilBadgeTableGUI\initFilter(), ilLPObjectStatisticsTypesTableGUI\initFilter(), ilLanguageExtTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilBuddySystemRelationsTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilExerciseSubmissionTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilTermsOfServiceAcceptanceHistoryTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilBadgePersonalTableGUI\initFilters(), ilObjMailGUI\initForm(), ilLOTestAssignmentForm\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilStudyProgrammeTypeFormGUI\initForm(), ilPCTabsGUI\initForm(), ilPCBlogGUI\initForm(), ilPCVerificationGUI\initForm(), ilPCMapGUI\initForm(), ilPCSectionGUI\initForm(), ilPCSkillsGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilObjCourseGroupingGUI\initForm(), ilBookingObjectGUI\initForm(), ilDclTableEditGUI\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilConsultationHoursGUI\initFormSequence(), ilCASSettingsGUI\initFormSettings(), ilObjSearchSettingsGUI\initFormSettings(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilExerciseManagementGUI\initGroupForm(), ilSurveyEditorGUI\initHeadingForm(), ilObjTestGUI\initImportForm(), ilPCListGUI\initListForm(), ilAuthLoginPageEditorGUI\initLoginForm(), ilObjUserTrackingGUI\initLPDefaultsForm(), ilPersonalSettingsGUI\initMailOptionsForm(), ilMailOptionsGUI\initMailOptionsForm(), ilECSSettingsGUI\initMappingsForm(), ilPersonalProfileGUI\initPersonalDataForm(), ilPCBlogGUI\initPostingForm(), ilADTTest\initProperties(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilPCTableGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjTaxonomyGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjStyleSheetGUI\initTemplateForm(), ilObjStyleSheetGUI\initTemplateGenerationForm(), ilMediaPoolImportGUI\initTranslationImportForm(), ilLMImportGUI\initTranslationImportForm(), ilSetupGUI\initTreeImplementationForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilCourseObjectivesGUI\initWizard(), ilPCQuestionGUI\insert(), ilRecurrenceInputGUI\insert(), ilContactGUI\inviteToChat(), ilSoapUtils\linkNode(), ilBadgeManagementGUI\listBadges(), ilTestExportGUI\listExportFiles(), ilExportGUI\listExportFiles(), ilDclFieldListGUI\listFields(), ilFileSystemGUI\listFiles(), ilObjectOwnershipManagementGUI\listObjects(), ilPersonalSkillsGUI\listProfiles(), ilSkillSelfEvaluationGUI\listSelfEvaluations(), ilObjMediaObjectGUI\listSubtitleFilesObject(), ilWikiPageTemplateGUI\listTemplates(), Assetic\Factory\Loader\BasePhpFormulaLoader\load(), ilSearchBaseGUI\loadCreationFilter(), Assetic\Extension\Twig\TwigFormulaLoader\loadNode(), ilDAVServer\LOCK(), PHPMailer\mb_pathinfo(), ilExerciseManagementGUI\membersObject(), ilDAVServer\MKCOL(), ilDAVServer\mountDir(), ilDAVServer\MOVE(), ilObjTestGUI\movePageFormObject(), Securimage\openDatabase(), ilSCORMTrackingItemsPerScoFilterGUI\parse(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilSCORM2004TrackingItemsPerScoFilterGUI\parse(), ilSearchGUI\parseCreationFilter(), ilLuceneSearchGUI\parseCreationFilter(), ilChartDataPie\parseData(), ilChartData\parseData(), ilLuceneAdvancedSearchFields\parseFieldQuery(), Assetic\Factory\AssetFactory\parseInput(), ilMailingListsGUI\performDeleteMembers(), ilObjRoleGUI\permObject(), PEAR\popErrorHandling(), assClozeTestGUI\populateGapFormPart(), ilECSSettingsGUI\prepareFieldSelection(), ilCourseDefinedFieldDefinition\prepareSelectBox(), Assetic\Factory\Loader\BasePhpFormulaLoader\processCall(), ilObjSCORMLearningModuleGUI\properties(), ilDAVServer\PROPFIND(), ilDAVServer\PROPPATCH(), PEAR\pushErrorHandling(), ilDAVServer\PUT(), ilDAVServer\PUTfinished(), ilObjSurveyQuestionPoolGUI\questionsObject(), PEAR\raiseError(), MDB2\raiseError(), ilECSSettingsGUI\released(), ilMathJax\renderMathJax(), ilPortfolioPageGUI\renderMyCourses(), ilPortfolioPageGUI\renderTeaser(), ComponentInstaller\Process\RequireJsProcess\requireJson(), ilTestEvaluationGUI\resetfilterEvaluation(), ilAuthProviderECS\resetMailOptions(), ilAuthContainerECS\resetMailOptions(), ilLDAPAttributeMapping\save(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilPersonalSkillsGUI\selfEvaluation(), ilChatroomServerConnector\sendMessage(), CAS_Request_CurlRequest\setCurlOptions(), PEAR\setErrorHandling(), PHPExcel_Settings\setLibXmlLoaderOptions(), ilAdvancedSearch\setOptions(), CAS_ProxiedService_Imap\setOptions(), MDB2\setOptions(), ilDclDetailedViewGUI\setOptions(), HTML_Template_IT\setOptions(), Parser\setOutputType(), ConfigDoc_HTMLXSLTProcessor\setParameters(), ilObjTest\setResultsPresentationOptionsByArray(), ilObjTest\setScoringFeedbackOptionsByArray(), ilObjectGUI\setSubObjects(), ilRadiusSettingsGUI\settings(), ilWorkspaceAccessGUI\share(), ilDclTableViewGUI\show(), ilObjContentObjectGUI\showExportIDsOverview(), ilObjSCORM2004LearningModuleGUI\showLearningObjectivesAlignment(), ilObjAssessmentFolderGUI\showLogSettingsObject(), ilDAVServer\showMountInstructions(), ilExerciseManagementGUI\showParticipantObject(), ilObjContentObjectGUI\showTooltipList(), ilUnitConfigurationGUI\showUnitCreationForm(), MDB2\singleton(), PHPMailerOAuth\smtpConnect(), PHPMailer\smtpConnect(), PEAR\staticPopErrorHandling(), PEAR\staticPushErrorHandling(), PHPExcel_Shared_OLE_ChainedBlockStream\stream_open(), assQuestionGUI\suggestedsolution(), ilLDAPServer\toPearAuthArray(), ilDAVServer\UNLOCK(), ilObjectCopyGUI\updateProgress(), ilLDAPSettingsGUI\userMappingToolbar(), ilValidatorAdapter\validate(), ilAssLacCompositeValidator\validateClozeTest(), ilPDNotesGUI\view(), ilWikiStatGUI\viewToolbar(), and Monolog\Handler\RavenHandler\write().

◆ $sopt

$sopt = ''

Definition at line 140 of file tcpdf_addfont.php.

◆ $tcpdf_include_dirs

if (php_sapi_name() !='cli') $tcpdf_include_dirs = array(realpath(dirname(__FILE__).'/../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php')

Definition at line 49 of file tcpdf_addfont.php.

◆ if

foreach ( $options[ 'fonts'] as $font) if($errors)

Definition at line 236 of file tcpdf_addfont.php.