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
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Heaptrc reports ...
by
jamie
[
Today
at 12:48:49 am]
New book on Object Pascal
by
TBMan
[
Today
at 12:39:00 am]
This worries me about our...
by
Curt Carpenter
[
Today
at 12:37:39 am]
Postgres, ZEOS and Visual...
by
wp
[November 13, 2025, 11:37:12 pm]
Programmatic filtering in...
by
jamie
[November 13, 2025, 11:30:59 pm]
In fpcsrc, many places ca...
by
avk
[November 13, 2025, 11:02:44 pm]
Variable "xyz" doesn't no...
by
Bitbeisser
[November 13, 2025, 11:01:46 pm]
Fpcupdeluxe
by
Cascade
[November 13, 2025, 10:46:00 pm]
line number when error ha...
by
Martin_fr
[November 13, 2025, 10:37:19 pm]
Access Violation
by
1HuntnMan
[November 13, 2025, 10:27:57 pm]
Unit Masks, matches funct...
by
Martin_fr
[November 13, 2025, 07:31:00 pm]
Minimum and maximum value...
by
ASerge
[November 13, 2025, 07:30:38 pm]
Help with search and repa...
by
avk
[November 13, 2025, 06:26:23 pm]
Problem Installing CHM He...
by
Curt Carpenter
[November 13, 2025, 05:50:37 pm]
Not visible soAllDirector...
by
LemonParty
[November 13, 2025, 05:44:26 pm]
What is your current pet ...
by
TBMan
[November 13, 2025, 05:07:28 pm]
How to detect if macOS ch...
by
Hansaplast
[November 13, 2025, 04:37:22 pm]
[SOLVED] Box-and-whisker ...
by
apeoperaio
[November 13, 2025, 03:40:35 pm]
updated pc but.. worse [S...
by
rnervi
[November 13, 2025, 12:34:48 pm]
Box-and-whisker plot with...
by
apeoperaio
[November 13, 2025, 12:14:39 pm]
synedit
by
scasparz
[November 13, 2025, 11:30:38 am]
Valgrind stops showing li...
by
Martin_fr
[November 13, 2025, 11:13:07 am]
[SOLVED] Feature request:...
by
Hansaplast
[November 13, 2025, 10:31:19 am]
Advanced Records Initiali...
by
Thaddy
[November 13, 2025, 08:06:10 am]
AArch64. Slow program sta...
by
dbannon
[November 13, 2025, 12:14:29 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: "FonT deprecated. What to use instead' (Read 4810 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: 13216
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: 13216
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: 18356
Here stood a man who saw the Elbe and jumped it.
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
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Graeme
Hero Member
Posts: 1432
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