Erik Hofman
bdc66d5535
Rename our own version of pu.h to FlightGear_pu.h per James advice. Remove inclusion of pu.h where it isn't requirted.
2020-09-03 12:56:01 +02:00
Erik Hofman
0451816a82
Add our own version of pu.h and use it to prevent bug #2362 on all systems. This can be done since pu.h is to be considered in code freeze forever anyhow.
2020-09-01 10:12:42 +02:00
James Turner
3883b19556
Remove use of unary_function, binary_function
...
Preparing for switch to C++17
2020-06-22 10:25:51 +01:00
Julian Smith
8ae21d86dd
src/GUI/FGFontCache.cxx: fix gcc warning about initialiser.
2020-06-17 22:46:41 +01:00
James Turner
1d97267663
Fix crash on shutdown in FGFontCache
...
Reported here by Michael:
https://sourceforge.net/p/flightgear/codetickets/2114/
2020-06-12 11:26:20 +01:00
James Turner
7e9930e871
Move fnt code from PLIB into 3rdparty
...
This enables us to fix TXF loading to use UTF8 paths, required for
handling non-ASCII paths on Windows.
2020-03-13 12:21:56 +00:00
James Turner
27410761f3
Lots of UTF8 path correctness fixes
2020-03-12 14:23:44 +00:00
Richard Harrison
7ab07eb1c0
Ensure fonts list cleared in destructor.
...
This is part of work trying to track down a segfault that is caused after a replay session (F-15).
2019-01-26 18:20:52 +01:00
James Turner
85f75dee4f
Fix a couple of potential crashes on exit.
...
- Font cache shutdown explicitly
- Pending GUI snapshot cleared explicitly
Both of these are dependencies on the osgViewer / GLContext.
2016-12-10 23:24:09 +00:00
Erik Hofman
7ed4a5162e
Replace auto_ptr with unique_ptr
2016-12-07 11:03:54 +01:00
James Turner
6d0c2070fd
Use future-proof SGPath APIs.
...
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
James Turner
16814800ce
Use Paths instead of strings.
2016-06-22 17:36:05 +01:00
James Turner
fc9c43b48d
Remove FontCache from globals.
...
- access via a singleton instead.
2016-01-03 12:00:15 -06:00
ThorstenB
ec739a17c2
Fix compiler warning
...
(access beyond array bounds)
2012-07-17 19:32:05 +02:00
ThorstenB
056b85bc1f
Add Latin1 character subset to default FG font.
...
Copies HELVETICA_12 from PLIB to FG, adding some more chars needed for
Latin1/ISO-8859-1 (West European languages).
(SANS_12B and HELVETICA_14 also support Latin1, but not the other default
PLIB fonts).
2012-04-21 19:06:11 +02:00
James Turner
a05ea36acb
Restructure GUI code, isolate PLIB in source files, to ease future refactoring and alternative GUI layers.
2011-11-19 20:25:51 +00:00