Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
"FonT deprecated. What to use instead'
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Have anyone develop UEFI ...
by
PascalDragon
[
Today
at 10:14:15 pm]
Poll: Watches and Display...
by
440bx
[
Today
at 10:11:55 pm]
How to: create DLL file f...
by
paule32
[
Today
at 10:11:35 pm]
Lazarus for Windows on aa...
by
PascalDragon
[
Today
at 10:09:10 pm]
The weird Rewrite bug
by
PascalDragon
[
Today
at 09:58:53 pm]
Assign (textfile) not com...
by
PascalDragon
[
Today
at 09:51:50 pm]
Question for people who h...
by
PascalDragon
[
Today
at 09:44:32 pm]
what to do if my target M...
by
PascalDragon
[
Today
at 09:36:59 pm]
Converting a string/index...
by
1HuntnMan
[
Today
at 08:48:12 pm]
Linux Workspaces -- StayO...
by
AmatCoder
[
Today
at 08:34:20 pm]
I just released a commerc...
by
Seenkao
[
Today
at 07:57:21 pm]
Access violation when re-...
by
TRon
[
Today
at 07:37:31 pm]
[SOLVED] assembler name i...
by
TRon
[
Today
at 07:26:33 pm]
Database standards OR Am ...
by
wpflum
[
Today
at 07:18:20 pm]
A fairly simple sound sol...
by
KodeZwerg
[
Today
at 07:01:52 pm]
Step-into the field sette...
by
Martin_fr
[
Today
at 06:54:19 pm]
[Fun Fact] PNG and Micros...
by
Ten_Mile_Hike
[
Today
at 06:24:19 pm]
Demoscene The Champs Crac...
by
KodeZwerg
[
Today
at 06:20:31 pm]
HTTP/2+HTTP/1.1+WebSocket...
by
iLya2IK
[
Today
at 06:14:30 pm]
Improvement of TFPTimerTh...
by
AlexTP
[
Today
at 05:56:38 pm]
Arabic text, problem on L...
by
nouzi
[
Today
at 05:21:27 pm]
WKWebView takeSnapshot
by
MISV
[
Today
at 04:53:41 pm]
Slow copying of small str...
by
Nitorami
[
Today
at 04:41:52 pm]
location of non visual co...
by
gerardus
[
Today
at 04:16:44 pm]
How to get along with the...
by
BrassGear
[
Today
at 03:24:10 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: "FonT deprecated. What to use instead' (Read 4316 times)
mtanner
Sr. Member
Posts: 287
"FonT deprecated. What to use instead'
«
on:
May 13, 2017, 04:40:48 pm »
I get the message Symbol "Font" is deprecated. I'd be curious to understand why, but mostly I'd just like to know how to refer to a font (so I can change font characteristics from my code) and not get this warning message.
Logged
wp
Hero Member
Posts: 11916
Re: "FonT deprecated. What to use instead'
«
Reply #1 on:
May 13, 2017, 05:11:45 pm »
Font of which component?
Logged
valdir.marcos
Hero Member
Posts: 1106
Re: "FonT deprecated. What to use instead'
«
Reply #2 on:
May 13, 2017, 05:14:40 pm »
What OS?
What OS bitness?
What font?
What Lazarus version and bitness?
Logged
mtanner
Sr. Member
Posts: 287
Re: "FonT deprecated. What to use instead'
«
Reply #3 on:
May 13, 2017, 05:16:37 pm »
Chart axis.
Logged
wp
Hero Member
Posts: 11916
Re: "FonT deprecated. What to use instead'
«
Reply #4 on:
May 13, 2017, 05:28:43 pm »
Use LabelFont instead.
Logged
mtanner
Sr. Member
Posts: 287
Re: "FonT deprecated. What to use instead'
«
Reply #5 on:
May 13, 2017, 05:33:15 pm »
Win (XP!)
Lazarus version 3.0.0 SVN revision 51630
i386-win32-win32/win74
No idea what "bitness" is.
Logged
Thaddy
Hero Member
Posts: 14373
Sensorship about opinions does not belong here.
Re: "FonT deprecated. What to use instead'
«
Reply #6 on:
May 13, 2017, 06:18:25 pm »
Not important here. Do what wp says: use labelfont instead.
Logged
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.
Graeme
Hero Member
Posts: 1428
Re: "FonT deprecated. What to use instead'
«
Reply #7 on:
May 15, 2017, 10:34:59 am »
Quote from: Thaddy on May 13, 2017, 06:18:25 pm
Not important here. Do what wp says: use labelfont instead.
The
deprecated
entry should really have mentioned that, which in turn would output in the compiler messages. For some years now FPC supports messages with the
deprecated
keyword.
See the "
Free Pascal Language Reference
" document, Section 1.5 "Hint directives".
Logged
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
"FonT deprecated. What to use instead'
TinyPortal
© 2005-2018