ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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

namespace  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('../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']))
 
 foreach ( $options[ 'fonts'] as $fontfile)
 

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.

60 {
61 $help = <<<EOD
62tcpdf_addfont - command line tool to convert fonts for the TCPDF library.
63
64Usage: tcpdf_addfont.php [ options ] -i fontfile[,fontfile]...
65
66Options:
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.
123EOD;
124 echo $help."\n\n";
125 exit(0);
126}
127
128// remove the name of the executing script
129array_shift($argv);
130
131// no options chosen
132if (!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)
169foreach ($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'] = $val;
191 break;
192 }
193 case 'p':
194 case 'platid': {
195 $options['platid'] = min(max(1, intval($val)), 3);
196 break;
197 }
198 case 'n':
199 case 'encid': {
200 $options['encid'] = min(max(0, intval($val)), 10);
201 break;
202 }
203 case 'b':
204 case 'addcbbox': {
205 $options['addcbbox'] = true;
206 break;
207 }
208 case 'l':
209 case 'link': {
210 $options['link'] = true;
211 break;
212 }
213 case 'i':
214 case 'fonts': {
215 $options['fonts'] = explode(',', $val);
216 break;
217 }
218 case 'h':
219 case 'help':
220 default: {
221 showHelp();
222 break;
223 }
224 } // end of switch
225} // end of while loop
226
227if (empty($options['fonts'])) {
228 die("ERROR: missing input fonts (try --help for usage)\n");
229}
230
231// check the output path
232if (!is_dir($options['outpath']) OR !is_writable($options['outpath'])) {
233 die("ERROR: Can't write to ".$options['outpath']."\n");
234}
235
236echo "*** Converting fonts for TCPDF ***\n\n";
237
238echo '--- Output dir set to '.$options['outpath']."\n\n";
239
240foreach ($options['fonts'] as $fontfile) {
241 $fontname = TCPDF_FONTS::addTTFfont($fontfile, $options['type'], $options['enc'], $options['flags'], $options['outpath'], $options['platid'], $options['encid'], $options['addcbbox'], $options['link']);
242 echo ">>> ".$fontfile.' added as '.$fontname."\n";
243}
convert($file)
Definition: HFile_conv.php:137
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:66
PHP class for generating PDF documents without requiring external extensions.
Definition: tcpdf.php:184
exit
Definition: login.php:54
foreach( $tcpdf_include_dirs as $tcpdf_include_path) showHelp()
Display help guide for this command.
$inopt
if(!is_array($argv)) $options

References convert(), and exit.

+ Here is the call graph for this function:

Variable Documentation

◆ $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(), ilMDEditorGUI\__buildDaysSelect(), ilTypicalLearningTimeInputGUI\__buildDaysSelect(), ilMDEditorGUI\__buildMonthsSelect(), ilTypicalLearningTimeInputGUI\__buildMonthsSelect(), XML_RPC2_Backend_Php_Server\__construct(), XML_RPC2_Backend_Xmlrpcext_Server\__construct(), XML_RPC2_Server\__construct(), XML_RPC2_CachedServer\__construct(), FormMailCodesGUI\__construct(), Securimage\__construct(), XML_RPC2_Backend_Php_Client\__construct(), XML_RPC2_Backend_Xmlrpcext_Client\__construct(), XML_RPC2_CachedClient\__construct(), XML_RPC2_Client\__construct(), ilAdvancedSearch\__getDifference(), ilObjPaymentSettingsGUI\__getVendors(), ilAccountRegistrationGUI\__initForm(), ilLinkChecker\__validateLinks(), HTTP_WebDAV_Server\_copymove(), Auth\_factory(), 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(), Spreadsheet_Excel_Writer_Validator\_getOptions(), ilMDUtilSelect\_getPurposeSelect(), ilBMFTransport_HTTP\_getRequest(), ilMDUtilSelect\_getRoleSelect(), ilMDUtilSelect\_getSemanticDensitySelect(), ilMDUtilSelect\_getStatusSelect(), ilMDUtilSelect\_getStructureSelect(), ilMDUtilSelect\_getTypicalAgeRangeSelect(), ilMDUtilSelect\_getTypicalLearningTimeSelect(), ilBMFBase\_makeEnvelope(), ilObject\_prepareCloneSelection(), ilContainerReferenceGUI\_prepareSelection(), ilBMFBase_Object\_raiseSoapFault(), ilBMFTransport_HTTP\_sendHTTP(), ilBMFTransport_HTTP\_sendHTTPS(), ilBMFBase\_serializeValue(), Spreadsheet_Excel_Writer_Worksheet\_writeUrlInternal(), Spreadsheet_Excel_Writer_Worksheet\_writeUrlWeb(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilCloudPluginFileTreeGUI\addDropZone(), ilDataCollectionDatatype\addFilterInputFieldToTable(), ilFilterGUI\addFilterItemByMetaType(), ilTable2GUI\addFilterItemByMetaType(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilUserProfile\addStandardFieldsToForm(), ilADTEnumFormBridge\addToForm(), ilADTEnumSearchBridgeMulti\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTMultiEnumFormBridge\addToForm(), ilObjExerciseGUI\adoptTeamAssignmentsFormObject(), ilDidacticTemplateGUI\appendToolbarSwitch(), Auth\applyAuthOptions(), ilPersonalSkillsGUI\assignMaterials(), ilObjStyleSettingsGUI\assignStylesToCatsObject(), ilCloudPluginUploadGUI\asyncUploadFile(), Auth\Auth(), Auth_Anonymous\Auth_Anonymous(), Auth_Container_RADIUS\Auth_Container_RADIUS(), Auth_Container_SOAP\Auth_Container_SOAP(), Auth_Container_SOAP5\Auth_Container_SOAP5(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilTestSkillEvaluationToolbarGUI\buildEvaluationModeOptionsArray(), ilRecurrenceInputGUI\buildMonthlyByMonthDaySelection(), ilObjTestGUI\buildPageViewToolbar(), ilCopyWizardExplorer\buildSelect(), ilObjTestDynamicQuestionSetConfigGUI\buildTaxonomySelectInputOptionJson(), ilDataCollectionNReferenceField\buildTemplate(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), Securimage\checkByCaptchaId(), ilContainer\cloneAllObject(), ilContainerGUI\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilSoapUtils\cloneNode(), ilLOSettings\cloneSettings(), ilSurveyParticipantsGUI\codesObject(), Net_Socket\connect(), MDB2\connect(), ilSurveyConstraintsGUI\constraintForm(), ilDAVServer\COPY(), ilObjContentObject\copyAllPagesAndChapters(), ilObjectCopyGUI\copyContainer(), ilSoapObjectAdministration\copyObject(), XML_RPC2_CachedServer\create(), XML_RPC2_Server\create(), XML_RPC2_CachedClient\create(), XML_RPC2_Client\create(), Auth_OpenID_MDB2Store\create_assoc_table(), MDB2_Driver_Manager_mysql\createSequence(), MDB2_Driver_Manager_mysqli\createSequence(), ilDB\createTable(), MDB2_Driver_Manager_Common\createTable(), MDB2_Driver_Manager_mysql\createTable(), MDB2_Driver_Manager_mysqli\createTable(), ilObjExerciseGUI\createTeamObject(), ilDAVServer\DELETE(), ilPCLoginPageElementGUI\edit(), ilPCResourcesGUI\edit(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellStyle(), ilAdvancedMDSettingsGUI\editFields(), ilObjWikiGUI\editImportantPagesObject(), ilObjExternalToolsSettingsGUI\editMathJaxObject(), ilObjTypeDefinitionGUI\editObject(), ilObjHelpSettingsGUI\editSettings(), ilObjNewsSettingsGUI\editSettings(), ilObjStyleSettingsGUI\editSystemStylesObject(), ilObjStyleSheetGUI\editTagStyleObject(), ilECSSettingsGUI\exportMappings(), MDB2\factory(), ilAuthFactory\factory(), ilTable2GUI\fillFooter(), ilLPCollectionSettingsTableGUI\fillRow(), ilUtil\formSelect(), ilObjTestGUI\formTimingObject(), ilDAVServer\GET(), ilCharSelectorConfig\getBlockOptions(), Title\getBrokenLinksFrom(), Securimage\getCaptchaId(), ilNotificationAdminSettingsForm\getChannelForm(), ilChatroomUser\getChatNameSuggestions(), ilECSMappingUtils\getCourseMappingFieldSelectOptions(), ilDAVServer\getDir(), ilNotificationAdminSettingsForm\getGeneralSettingsForm(), ilConsultationHourGroups\getGroupSelectOptions(), ilCalendarUtil\getHourSelection(), ilAccordionGUI\getHTML(), ilADTEnumPresentationBridge\getHTML(), ilADTMultiEnumPresentationBridge\getHTML(), ilFileUploadGUI\getHTML(), ilRegistrationCodesTableGUI\getItems(), Title\getLinksTo(), ilLPTableBaseGUI\getMonthsFilter(), ilObjectTranslationGUI\getMultiLangForm(), ilTestParticipantData\getOptionArray(), ilSCORMExplorer\getOutput(), ilShopPublicSectionSelector\getOutput(), ilExplorer\getOutput(), SurveyMatrixQuestionGUI\getParsedAnswers(), SurveyMultipleChoiceQuestionGUI\getParsedAnswers(), SurveySingleChoiceQuestionGUI\getParsedAnswers(), ilTestResultsToolbarGUI\getParticipantSelectorOptionsWithHintOption(), ilPayMethods\getPayMethodsOptions(), ilECSCategoryMapping\getPossibleFields(), ilLPTableBaseGUI\getPossibleTypes(), SurveyMultipleChoiceQuestion\getPreconditionOptions(), SurveySingleChoiceQuestion\getPreconditionOptions(), SurveyMatrixQuestion\getPreconditionSelectValue(), SurveyMultipleChoiceQuestion\getPreconditionSelectValue(), SurveySingleChoiceQuestion\getPreconditionSelectValue(), SurveyMatrixQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), ilOpenIdProviders\getProviderSelection(), ilCourseObjectivesGUI\getRandomTestQplOptions(), ilDataCollectionRecord\getRecordFieldHTML(), ilDataCollectionRecord\getRecordFieldSortingValue(), ilTrSummaryTableGUI\getSelCountryCodes(), ilDataCollectionNReferenceField\getSingleHTML(), Title\getTemplateLinksTo(), ilPageContentGUI\getTemplateOptions(), ilPCIIMTriggerEditorGUI\getToolbar(), ilImageMapEditorGUI\getToolbar(), ilNotificationAdminSettingsForm\getTypeForm(), TCPDF_STATIC\getUserPermissionCode(), HTML_Template_IT\HTML_Template_IT(), 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(), ilBMFFault\ilBMFFault(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), ilECSSettingsGUI\imported(), ilECSSettingsGUI\importMappings(), ilObjMediaCastGUI\initAddCastItemForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilObjLanguageExtGUI\initAddNewEntryForm(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilSetupGUI\initBasicSettingsForm(), ilObjPortfolioGUI\initBlogForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilPageEditorGUI\initCharacteristicForm(), ilSetupGUI\initClientDbForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioTemplateGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCreateForm(), ilSetupGUI\initDBSelectionForm(), ilObjectGUI\initDidacticTemplate(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilLPTableBaseGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilLanguageExtTableGUI\initFilter(), ilPDNewsTableGUI\initFilter(), ilWorkspaceShareTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilLPObjectStatisticsTypesTableGUI\initFilter(), ilTrObjectUsersPropsTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilObjCourseGroupingGUI\initForm(), ilPCBlogGUI\initForm(), ilPCSkillsGUI\initForm(), ilPCVerificationGUI\initForm(), ilPCMapGUI\initForm(), ilObjUserGUI\initForm(), ilDataCollectionFieldEditGUI\initForm(), ilDataCollectionTableEditGUI\initForm(), ilBookingObjectGUI\initForm(), ilPCTabsGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilDataCollectionRecordEditGUI\initForm(), ilDataCollectionRecordListViewdefinitionGUI\initForm(), ilOrgUnitTypeFormGUI\initForm(), ilObjMailGUI\initForm(), ilCourseObjectivesGUI\initFormRandom(), ilConsultationHoursGUI\initFormSequence(), ilObjSearchSettingsGUI\initFormSettings(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilSurveyEditorGUI\initHeadingForm(), ilObjTestGUI\initImportForm(), ilPCListGUI\initListForm(), ilAuthLoginPageEditorGUI\initLoginForm(), ilMailOptionsGUI\initMailOptionsForm(), ilPersonalSettingsGUI\initMailOptionsForm(), ilECSSettingsGUI\initMappingsForm(), ilPersonalProfileGUI\initPersonalDataForm(), ilPCBlogGUI\initPostingForm(), ilADTTest\initProperties(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilPCTableGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilObjWikiGUI\initSettingsForm(), ilShopNewsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjTaxonomyGUI\initSettingsForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjStyleSheetGUI\initTemplateForm(), ilObjStyleSheetGUI\initTemplateGenerationForm(), ilLOEditorGUI\initTestForm(), ilSetupGUI\initTreeImplementationForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilCourseObjectivesGUI\initWizard(), ilPCQuestionGUI\insert(), ilRecurrenceInputGUI\insert(), ilSoapUtils\linkNode(), ilTestExportGUI\listExportFiles(), ilExportGUI\listExportFiles(), ilDataCollectionFieldListGUI\listFields(), ilFileSystemGUI\listFiles(), ilObjectOwnershipManagementGUI\listObjects(), ilPersonalSkillsGUI\listProfiles(), ilSkillSelfEvaluationGUI\listSelfEvaluations(), ilObjMediaObjectGUI\listSubtitleFilesObject(), ilWikiPageTemplateGUI\listTemplates(), ilDAVServer\LOCK(), ilObjAssessmentFolderGUI\logsObject(), ilObjExerciseGUI\membersObject(), ilDAVServer\MKCOL(), ilDAVServer\mountDir(), ilDAVServer\MOVE(), ilObjTestGUI\movePageFormObject(), Securimage\openDatabase(), ilSCORM2004TrackingItemsPerScoFilterGUI\parse(), ilSCORMTrackingItemsPerScoFilterGUI\parse(), ilSCORM2004TrackingItemsPerUserFilterGUI\parse(), ilSCORMTrackingItemsPerUserFilterGUI\parse(), ilChartData\parseData(), ilChartDataPie\parseData(), ilLuceneAdvancedSearchFields\parseFieldQuery(), PEAR_Error\PEAR_Error(), ilObjRoleGUI\permObject(), PEAR\popErrorHandling(), assClozeTestGUI\populateGapFormPart(), ilECSSettingsGUI\prepareFieldSelection(), ilCourseDefinedFieldDefinition\prepareSelectBox(), ilObjSCORMLearningModuleGUI\properties(), ilDAVServer\PROPFIND(), ilDAVServer\PROPPATCH(), PEAR\pushErrorHandling(), ilDAVServer\PUT(), ilDAVServer\PUTfinished(), ilObjSurveyQuestionPoolGUI\questionsObject(), MDB2\raiseError(), PEAR\raiseError(), ilECSSettingsGUI\released(), XML_RPC2_Backend_Php_Client\remoteCall___(), XML_RPC2_Backend_Xmlrpcext_Client\remoteCall___(), ilPortfolioPageGUI\renderTeaser(), ilAuthContainerECS\resetMailOptions(), ilLDAPAttributeMapping\save(), ilObjMediaPoolGUI\selectUploadDirFiles(), ilPersonalSkillsGUI\selfEvaluation(), ilBMFTransport_SMTP\send(), ilBMFTransport_HTTP\send(), ilChatroomServerConnector\sendMessage(), PEAR\setErrorHandling(), ilDataCollectionRecordViewGUI\setOptions(), HTML_Template_IT\setOptions(), MDB2\setOptions(), ilAdvancedSearch\setOptions(), ilObjTest\setResultsPresentationOptionsByArray(), ilObjTest\setScoringFeedbackOptionsByArray(), ilObjectGUI\setSubObjects(), ilWorkspaceAccessGUI\share(), ilMailingListsGUI\showAssignmentForm(), ilObjContentObjectGUI\showExportIDsOverview(), ilObjSCORM2004LearningModuleGUI\showLearningObjectivesAlignment(), ilDAVServer\showMountInstructions(), ilObjExerciseGUI\showParticipantObject(), ilObjContentObjectGUI\showTooltipList(), ilShopTopicsGUI\showTopicsSettings(), MDB2\singleton(), Auth\staticCheckAuth(), PEAR\staticPopErrorHandling(), PEAR\staticPushErrorHandling(), OLE_ChainedBlockStream\stream_open(), Structures_BibTex\Structures_BibTex(), assQuestionGUI\suggestedsolution(), Auth_OpenID_Parse\tagMatcher(), ilLDAPServer\toPearAuthArray(), ilDAVServer\UNLOCK(), ilLDAPSettingsGUI\userMappingToolbar(), ilValidatorAdapter\validate(), ilPDNotesGUI\view(), and ilWikiStatGUI\viewToolbar().

◆ $sopt

$sopt = ''

Definition at line 140 of file tcpdf_addfont.php.

◆ $tcpdf_include_dirs

if (php_sapi_name() !='cli') $tcpdf_include_dirs = array(realpath('../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.

◆ foreach

foreach($options['fonts'] as $fontfile) (   $options as[ 'fonts'])

Definition at line 240 of file tcpdf_addfont.php.

◆ if

foreach( $inopt as $opt=> $val) if(empty($options['fonts'])) if(!is_dir($options['outpath']) OR !is_writable($options['outpath'])) ( is_dir $options[ 'outpath']) OR !is_writable( $options[ 'outpath'])

Definition at line 232 of file tcpdf_addfont.php.