Difference between revisions of "LazFreeType"

From Free Pascal wiki
Jump to navigationJump to search
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{LazFreeType}}
 +
 
The original FreeType was written in Pascal and it has been resuscitated and placed in Lazarus.
 
The original FreeType was written in Pascal and it has been resuscitated and placed in Lazarus.
 
__TOC__
 
__TOC__
Line 5: Line 7:
  
 
lazarus/components/lazutils
 
lazarus/components/lazutils
lazarus/lcl/easylazfreetypeintfdrawer.pas
+
lazarus/lcl/lazfreetypeintfdrawer.pas
  
 
The old source code of FreeType itself can be downloaded from the lazarus-ccr in:
 
The old source code of FreeType itself can be downloaded from the lazarus-ccr in:
Line 17: Line 19:
 
lazarus/examples/lazfreetype/lazfreetypetest.lpi
 
lazarus/examples/lazfreetype/lazfreetypetest.lpi
  
One needs to place a font Arial.ttf in the same directory as the executable or else set a path in the lazarus/examples/lazfreetype/mainform.pas unit to the font to use.
+
One needs to place the fonts; arial.ttf, timesi.ttf, verdana.ttf in the same directory as the executable or else set a path in the lazarus/examples/lazfreetype/mainform.pas unit to the font to use.
  
 
[[Image:Lazfreetype.PNG]]
 
[[Image:Lazfreetype.PNG]]
 +
 +
==License==
 +
 +
From: http://www.freetype.org/license.html
 +
 +
FreeType comes with two licenses from which you can choose the one which fits your needs best.
 +
 +
The FreeType License is the most commonly used one. Full text here: http://www.freetype.org/FTL.TXT
 +
It is a BSD-style license with a credit clause (and thus compatible with GPLv3 but not GPLv2).
 +
 +
The GNU General Public License (GPL), version 2.
 +
For all projects which use GPLv2 also or which need a license compatible to the GPLv2.
  
 
==See Also==
 
==See Also==
 
*[[Custom Drawn Interface]]
 
*[[Custom Drawn Interface]]
 +
 +
[[Category:FreeType]]

Latest revision as of 20:39, 28 October 2016

English (en) français (fr)

The original FreeType was written in Pascal and it has been resuscitated and placed in Lazarus.

Subversion

The new LazFreeType project is a part of Lazarus and is located in the directories:

lazarus/components/lazutils lazarus/lcl/lazfreetypeintfdrawer.pas

The old source code of FreeType itself can be downloaded from the lazarus-ccr in:

lazarus-ccr/components/freetypepascal

Example applications

Located in the Lazarus SVN

lazarus/examples/lazfreetype/lazfreetypetest.lpi

One needs to place the fonts; arial.ttf, timesi.ttf, verdana.ttf in the same directory as the executable or else set a path in the lazarus/examples/lazfreetype/mainform.pas unit to the font to use.

Lazfreetype.PNG

License

From: http://www.freetype.org/license.html

FreeType comes with two licenses from which you can choose the one which fits your needs best.

The FreeType License is the most commonly used one. Full text here: http://www.freetype.org/FTL.TXT

It is a BSD-style license with a credit clause (and thus compatible with GPLv3 but not GPLv2).

The GNU General Public License (GPL), version 2.

For all projects which use GPLv2 also or which need a license compatible to the GPLv2.

See Also