Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 8
Load metric information for the given font
#include <photon/Pf.h>
int PfLoadMetrics( const char *font );
#include <font_api.h>
int PfLoadMetricsCx( struct _Pf_ctrl * context,
const char * font );
- context
- (PfLoadMetricsCx() only) A pointer to the font context to use, returned by PfAttachCx() or PfAttachDllCx().
- font
- The name of the font, as created by
PfGenerateFontName()
PfGenerateFontNameCx()or.
- PfLoadMetrics()
- ph
- PfLoadMetricsCx()
- font
These functions load metric information for the given font from the
font server into memory and link this font into a list of available
local metrics.
Subsequent text extents of this base font, involving characters
solely within this font, are performed locally by the task itself
rather than by the font server. This may result in faster operation of
extent-intensive tasks, such as HTML viewers, at a cost of about 1400
bytes of memory per font (for a standard font that defines characters
0x20-0xFF).
|
In instances where the font metrics do not contain the glyph, messaging
will be used as a fallback method. |
- 0
- Success.
- -1
- An error occurred
(errno
is set.
PfLoadMetricsCx(): See the example for PfConvertPixelsToPointSizeCx().
Photon
PfLoadMetrics()
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PfLoadMetricsCx()
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
PfGenerateFontName(),
PfGenerateFontNameCx(),
PfUnloadMetrics(),
PfUnloadMetricsCx()
Fonts
chapter of the Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 175
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pf/pfloadmetrics.html on line 175