Recent

Author Topic: How to open a file (.ttf) without installing?  (Read 7305 times)

Robson

  • New Member
  • *
  • Posts: 47
How to open a file (.ttf) without installing?
« on: December 06, 2010, 05:45:36 pm »
Lazarus 0.9.29 r28578 FPC 2.4.0 i386-linux-gtk 2
______________________________________________

I use Lazarus on Linux Ubuntu 10:10

How to open a file (.ttf) without installing?
I want to use a particular font in my program.

thanks

Robson

  • New Member
  • *
  • Posts: 47
Re: How to open a file (.ttf) without installing?
« Reply #1 on: December 06, 2010, 07:56:53 pm »
This link explains how to do, but I can not put the source in a TLabel for example. Does anyone know?

http://wiki.lazarus.freepascal.org/fcl-image

example = Drawing text

help me please

thanks

Robson

  • New Member
  • *
  • Posts: 47
Re: How to open a file (.ttf) without installing?
« Reply #2 on: December 07, 2010, 09:39:46 am »
nobody knows?  :(

Robson

  • New Member
  • *
  • Posts: 47
Re: How to open a file (.ttf) without installing?
« Reply #3 on: December 08, 2010, 09:06:58 pm »
up

I just wanted to do something like:

Label1.Font := MyFont;

(I created this .ttf)

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: How to open a file (.ttf) without installing?
« Reply #4 on: December 08, 2010, 09:12:26 pm »
I'm not sure about font management on Linux. But I'm not sure you can actually do this directly. You can emulate it by using freefont directly to draw to canvases, but not assign as a TFont, unless it's allowed indirectly by the widgetset

Robson

  • New Member
  • *
  • Posts: 47
Re: How to open a file (.ttf) without installing?
« Reply #5 on: December 08, 2010, 11:17:13 pm »
ok, thanks

Solution: install the font on the deb package

 

TinyPortal © 2005-2018