SWF_DEFINEFONT(3) 1 SWF_DEFINEFONT(3)swf_definefont - Defines a fontSYNOPSIS
void swf_definefont (int $fontid, string $fontname)
DESCRIPTION
The swf_definefont(3) function defines a font parameter and gives it the specified id. It then sets the font given by $
fontname to the current font.
PARAMETERS
o $fontid
- The id to be given to the font.
o $fontname
- The font so be set as current font.
RETURN VALUES
No value is returned.
SEE ALSO swf_definetext(3).
PHP Documentation Group SWF_DEFINEFONT(3)
Check Out this Related Man Page
DTK_LOAD_FONT(3) Draw Toolkit manual DTK_LOAD_FONT(3)NAME
dtk_load_font - Load an font
SYNOPSIS
#include <drawtk.h>
dtk_hfont dtk_load_font(const char *fontname);
void dtk_destroy_font(dtk_hfont font);
DESCRIPTION
dtk_load_font() loads the font specified by fontname argument. This should be the path of a file whose file format can be any of the file
format supported by the freetype library (TrueType and Type 1 among many others) or a font description pattern understood by fontconfig
(like "Times new roman:bold"). dtk_load_font() will first interpret fontname as a font filename and then, if this fail interpret as a font
pattern and load the closest font available on the system.
Upon creation, the font data is then tracked by an internal resource manager so that the next call using the same fontname argument will
return the same font handle, thus sparing the resources of the system.
There is no need for a valid window to create successfully a font, i.e. font loading is completely decoupled from the creation of others
resources and can even be created in one thread to be used in another one.
dtk_destroy_font() frees the resource referenced by font. If the font is used several times, i.e. several call to dtk_load_font() with the
same file path, it decreases the number of uses by one.
Calling dtk_destroy_texture() on each created font is currently not mandatory since all font remaining fonts are destroyed when the last
window is closed. However, if no window can be closed (for example, no window has been created), dtk_destroy_font() should be called on
each created font to avoid any memory leak.
RETURN VALUE
In case of success, the dtk_load_font() returns the handle to the loaded font. In case of failure, NULL is returned.
dtk_destroy_texture() does not return any value.
THREAD SAFETY
dtk_load_font() and dtk_destroy_texture() are thread-safe.
SEE ALSO dtk_create_string(3)fc-list(1)FcPatternFormat(3)EPFL 2010 DTK_LOAD_FONT(3)
Emergency UNIX and Linux Support !! Help Me! Forum (Request Urgent Help)
README FIRST: How to Request Emergency or Urgent Help:
You may post emergency work-related questions in the emergency forum. To post in this forum you will need to use your Bits. All questions answered on a "best... (0 Replies)
Homework Help:
On Posting Questions:
Any and all high school and undergraduate homework assignments or textbook style exercises for which you are seeking assistance are to be posted only in our Homework & Coursework Questions area--not in blogs, visitor messages, PMs, or the main technical... (0 Replies)
How to Use Code Tags in The UNIX and Linux Forums
Developer: This video tutorial was created by scott for forum users. Everyone should use code tags when posting code and command line logic in the forums.
cPF45jjWe7Q
A full list of BB codes is available here. (8 Replies)
RULES OF THE UNIX AND LINUX FORUMS
For the latest version of the community rules (the official community rules page), please visit here.
No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts.
No negative comments about others or impolite remarks. Be patient. No... (1 Reply)
Hey,
Just added a new UserCP option so you can change the code tags to look like the code tags in this example (turn this on and off):
Note: I set the default to "SyntaxHighlighting" for debugging purposes. We can change the default back to the original code tags later.
... (36 Replies)
Having spent a lot of time over the past year taking a legacy vBulletin site (this forum) and making the site responsive on mobile; I've happy with the results; but it will soon be time to move on.
Basically, at our core, we are a LAMP (Linux, Apache2, MySQL and PHP) site, and vBulletin was... (6 Replies)
On this special Happy News Year day, 1 January 2019, I am pleased to promote Ravinder Singh to UNIX.COM Moderator, for at least the following reasons:
Ravinder Loves UNIX.COM
Ravinder has 1,372 Thanks, which puts him in the Top Ten in that important single category.
Ravinder is one of... (8 Replies)
Please join me in congratulations to Wolf Machowitsch (bakunin) for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry:
"The Order of the Wizard's Hat - Lifetime Achievement Award"
This "Order of the Wizard's Hat" is presented to Wolf Machowitsch (bakunin)... (11 Replies)
Dear All,
We were hit with a denial of service (DOS) attack today beginning around June 12th 2019 @ 01:27:51 PM from an IP address registered to "RACKWEB-NET" in Bulgaria.
I was notified about this around June 12th 2019 @ 03:05 PM and did some log file analysis and discovered how the attack... (4 Replies)
Dear All,
I am very pleased to inform everyone that Nicki Paul (zxmaus) is joining the Moderation Team after a number of years away from the site.
Nicki used to be very active here (over 800 posts), and she got busy with travel, work, family and her dogs, and we have missed her. Now she is... (7 Replies)