10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

0 (none), 100 (thin), 200 (extralight), 300 (light), 400 (normal), 500 (medium), 600(semibold), 700 (bold), 800 (extrabold), 900 (black)The following example will select the bold variant of a font:font = p.load_font("Verdana,700", "unicode", "");Note Windows style names for fonts may be useful if you have to deal with localized font namessince they provide a universal method to access font variations regardless of their localizednames.Note Do not confuse the Windows style name convention with the fontstyle option which lookssimilar, but works on a completely different basis.Potential problem with host font access on Windows. We’d like to alert users to a potentialproblem with font installation on Windows. If you install fonts via the File, Installnew font... menu item (as opposed to dragging fonts to the Fonts directory) there’s acheck box Copy fonts to Fonts folder. If this box is unchecked, Windows will only place ashortcut (link) to the original font file in the fonts folder. In this case the original fontfile must live in a directory which is accessible to the application using PDFlib. In particular,font files outside of the Windows Fonts directory may not be accessible to IIS withdefault security settings. Solution: either copy font files to the Fonts directory, or placethe original font file in a directory where IIS has read permission.Similar problems may arise with Adobe Type Manager (ATM) if the Add without copyingfonts option is checked while installing fonts.Host font names on the Mac. Using the Font Book utility, which is part of Mac OS X,you can find the names of installed host fonts. In order to programmatically create listsof host fonts we recommend Apple’s freely available Font Tools 1 . This suite of command-lineutilities contains a program called ftxinstalledfonts which is useful for determiningthe exact names of all installed fonts. PDFlib supports several flavors of hostfont names:> QuickDraw font names: these are old-style font names (in Mac OS supported only bydeprecated font functions) which have been in use for a long time on Mac OS systems,but are considered outdated. In order to determine QuickDraw font names issuethe following command in a terminal window:ftxinstalledfonts -q> »Unique« font names: these are newer font names (in Mac OS supported by new ATSfont functions) which can be encoded in Unicode, e.g. for East-Asian fonts. In order todetermine unique font names issue the following command in a terminal window(in some cases the output contains entries with a ’:’ which must be removed):ftxinstalledfonts -u> PostScript font names. In order to determine PostScript font names issue the followingcommand in a terminal window:ftxinstalledfonts -p1. See developer.apple.com/textfonts/download5.3 Locating, Embedding and Subsetting Fonts 105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!