aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Font.c
Commit message (Collapse)AuthorAgeFilesLines
* Font.c: scope improvementsUlrich Sibiller2020-01-051-30/+15
|
* Font.c: reformat commentsUlrich Sibiller2020-01-051-28/+20
|
* Font.c: add FIXMEUlrich Sibiller2019-09-291-0/+1
|
* Font.c: use SAFE_XFree and SAFE_freeUlrich Sibiller2019-08-061-37/+26
|
* Font.c: code simplificationsUlrich Sibiller2019-06-191-20/+9
|
* various scope improvementsUlrich Sibiller2019-06-191-32/+17
|
* Font.c: use __func__ in TEST printsUlrich Sibiller2019-05-101-15/+15
|
* Font.c: Avoid duplicate font pathsUlrich Sibiller2019-05-101-2/+26
|
* auto-determine system font path and add to list of font pathsUlrich Sibiller2019-05-101-0/+1
| | | | | This will help on non-supported platforms as it will add a path the current code might not be aware of.
* Font.c: Loop over font pathsUlrich Sibiller2019-05-101-8/+16
| | | | | drop defines and use an array instead. This way adding further paths can be done much easier.
* Font.c: Let dix check if a font path existsUlrich Sibiller2019-05-101-30/+24
| | | | | Dix will only add font paths that are existing on the system. There's no need to check that ourselves.
* Font.c: build the font paths at runtimeUlrich Sibiller2019-05-101-33/+34
| | | | Drop the font path defines and build the path strings at runtime instead.
* Drop Speedo font supportUlrich Sibiller2019-05-101-8/+4
| | | | Has been obsoleted in 2005, see https://en.wikipedia.org/wiki/Bitstream_Speedo_Fonts
* Font.c: factor out font checksUlrich Sibiller2019-05-101-95/+37
|
* Replace MIN/MAX macros by min/max from misc.hUlrich Sibiller2018-08-231-1/+1
| | | | We do not need two versions in the code
* hw/nxagent: fix spelling errors as reported by codespellUlrich Sibiller2018-05-241-3/+3
|
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-2/+2
|
* Font.c: replace malloc + strcpy by strdup + fix memleakUlrich Sibiller2018-01-071-2/+3
|
* Font.c: free possibly allocated memUlrich Sibiller2018-01-071-0/+5
| | | | even if we issue a FatalError afterwards
* Font.c: replace memcpy by sprintf preventing possible buffer overflowsUlrich Sibiller2018-01-071-9/+3
| | | | | | I am not sure about the maximum font name length in X but just in case use snprintf instead of memcpy to be sure nothing dangerous can happen here.
* Font.c: pass down sizeUlrich Sibiller2018-01-071-6/+5
|
* Font.c: make nxagentGetFontServerPath more readableUlrich Sibiller2018-01-071-4/+5
|
* Font.c: shorten string handlingUlrich Sibiller2018-01-071-18/+7
|
* Dialog.c,Display.c,Font.c,NXdixfonts.c: don't use hardcoded string buffer ↵Ulrich Sibiller2018-01-071-3/+4
| | | | lengths
* simply free() callsUlrich Sibiller2017-11-211-22/+7
| | | | free() can handle NULL so there's no need to check this ourselves
* Xserver: Support building against libXfont2 (v2) API and old libXfont(1) API ↵Mike Gabriel2017-04-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | alike. Fixes ArcticaProject/nx-libs#296. Inspired by the following X.org commit. Other than X.org, we will continue support for building nx-libs against libXfont1 for a while. commit 05a793f5b3c40747d5a92a076def7f4fb673c7e7 Author: Keith Packard <keithp@keithp.com> Date: Tue Sep 1 18:50:55 2015 -0700 dix: Switch to the libXfont2 API (v2) This new libXfont API eliminates exposing internal X server symbols to the font library, replacing those with a struct full of the entire API needed to use that library. v2: Use libXfont2 instead of libXfont_2 Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
* nxagent: move validateString as inline func to Utils.hUlrich Sibiller2017-03-031-1/+1
|
* nxagent: half number of NameForAtom callsUlrich Sibiller2017-03-031-0/+1
| | | | | | | | Because of validateString being a macro NameForAtom was called twice most of the time. Fix that by making validateString a function. Fixes ArticaProject/nx-libs#357
* Xserver/dix/atom.c (et al.): Constify atom name strings.Mike Gabriel2017-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inspired by X.org commits: commit 08093c25a91c07ab8af7cece9bba738b827cfd1b Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Mon Oct 24 23:16:30 2011 -0700 Convert some malloc + strncpy pairs into strndup calls Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> commit 816b79dd061e9839cec94a4986a7820b70ca8a7f Author: Mikhail Gusarov <dottedmag@dottedmag.net> Date: Thu May 13 03:45:21 2010 +0700 Remove useless casts Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Keith Packard <keithp@keithp.com> This PR ships a tiny change in MakeAtom, that we adopted. We did not adopt the full commit. commit 5623c27700b7b23a8dbbd8c8f45e5d4fa0c667e3 Author: Alan Coopersmith <alan.coopersmith@sun.com> Date: Mon Feb 2 19:25:14 2009 -0800 Constify atom name strings Changes MakeAtom to take a const char * and NameForAtom to return them, since many callers pass pointers to constant strings stored in read-only ELF sections. Updates in-tree callers as necessary to clear const mismatch warnings introduced by this change. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* Xserver/hw/nxagent/Font.c: Drop references to /usr/NX/share/fonts/base as ↵Mike Gabriel2017-02-271-8/+4
| | | | default font path, entirely.
* Xserver/hw/nxagent/Font.c: Change (alternative) default font path order to ↵Mike Gabriel2017-02-271-10/+10
| | | | make font path search compliant with latest FHS for X11 fonts (though, prefer /usr/share/nx/fonts as default path).
* Xserver/hw/nxagent/Font.c: Drop NXAGENT_ALTERNATE_FONT_PATH_4 (pointing to ↵Mike Gabriel2017-02-271-30/+0
| | | | /usr/NX/share/fonts/base) entirely.
* nxcompext: Move code into Xserver subtree, as nxcompext requires Xserver ↵Mike Gabriel2016-11-151-1/+1
| | | | | | includes at build time. Fixes ArcticaProject/nx-libs#276.
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-061-7/+15
| | | | that NoMachine placed there own copyright statement in.
* nx-X11/programs/Xserver: Drop {X,x}realloc() macros, use realloc() instead.Mike Gabriel2016-07-021-2/+2
|
* nx-X11/programs/Xserver: Drop {X,x}alloc() macros, use malloc() instead.Mike Gabriel2016-07-021-7/+7
|
* nx-X11/programs/Xserver: Drop {X,x}free() macros, use free() instead.Mike Gabriel2016-07-021-10/+10
| | | | Fixes ArcticaProject/nx-libs#105
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-2/+2
| | | | with system-wide shared libraries.
* Replace 'pointer' type with 'void *'Keith Packard2015-12-281-7/+7
| | | | | | | | | | This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net> Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* library clean-up: Don't build and link libXfont.a anymore. Use system's ↵pr/libxfont-cleanupMike Gabriel2015-04-221-2/+2
| | | | libXfont shared library and link dynamically.
* Imported nxagent-3.5.0-2.tar.gznxagent/3.5.0-2Reinhard Tartler2011-10-101-2/+2
| | | | | | | | Summary: Imported nxagent-3.5.0-2.tar.gz Keywords: Imported nxagent-3.5.0-2.tar.gz into Git repository
* Imported nxagent-3.4.0-5.tar.gznxagent/3.4.0-5Reinhard Tartler2011-10-101-1/+1
| | | | | | | | Summary: Imported nxagent-3.4.0-5.tar.gz Keywords: Imported nxagent-3.4.0-5.tar.gz into Git repository
* Imported nxagent-3.4.0-3.tar.gznxagent/3.4.0-3Reinhard Tartler2011-10-101-1/+1
| | | | | | | | Summary: Imported nxagent-3.4.0-3.tar.gz Keywords: Imported nxagent-3.4.0-3.tar.gz into Git repository
* Imported nxagent-3.4.0-16.tar.gznxagent/3.4.0-16Reinhard Tartler2011-10-101-1/+1
| | | | | | | | Summary: Imported nxagent-3.4.0-16.tar.gz Keywords: Imported nxagent-3.4.0-16.tar.gz into Git repository
* Imported nxagent-3.4.0-11.tar.gznxagent/3.4.0-11Reinhard Tartler2011-10-101-4/+14
| | | | | | | | Summary: Imported nxagent-3.4.0-11.tar.gz Keywords: Imported nxagent-3.4.0-11.tar.gz into Git repository
* Imported nxagent-3.3.0-9.tar.gznxagent/3.3.0-9Reinhard Tartler2011-10-101-4/+37
| | | | | | | | Summary: Imported nxagent-3.3.0-9.tar.gz Keywords: Imported nxagent-3.3.0-9.tar.gz into Git repository
* Imported nxagent-3.3.0-6.tar.gznxagent/3.3.0-6Reinhard Tartler2011-10-101-37/+4
| | | | | | | | Summary: Imported nxagent-3.3.0-6.tar.gz Keywords: Imported nxagent-3.3.0-6.tar.gz into Git repository
* Imported nxagent-3.3.0-10.tar.gznxagent/3.3.0-10Reinhard Tartler2011-10-101-11/+177
| | | | | | | | Summary: Imported nxagent-3.3.0-10.tar.gz Keywords: Imported nxagent-3.3.0-10.tar.gz into Git repository
* Imported nxagent-3.2.0-5.tar.gznxagent/3.2.0-5Reinhard Tartler2011-10-101-139/+6
| | | | | | | | Summary: Imported nxagent-3.2.0-5.tar.gz Keywords: Imported nxagent-3.2.0-5.tar.gz into Git repository
* Imported nxagent-3.2.0-10.tar.gznxagent/3.2.0-10Reinhard Tartler2011-10-101-6/+149
| | | | | | | | Summary: Imported nxagent-3.2.0-10.tar.gz Keywords: Imported nxagent-3.2.0-10.tar.gz into Git repository