Commit graph

5357 commits

Author SHA1 Message Date
Bill Kendrick
6a5f8d3075 Apparently done looking for "fonts.conf" FontConfig files 2025-02-22 15:59:53 -08:00
Bill Kendrick
7f1ab23292 Support for <dir prefix="relative"> in "fonts.conf" 2025-02-22 13:06:43 -08:00
Bill Kendrick
e04bfc651a Starting work to support <dir prefix=...> in fonts.conf
FontConfig fonts.conf's <dir> tags support a few different
"prefix" attributes.  We'll need to support "xdg" (done here)
and "relative" (forthcoming).
2025-02-22 12:52:27 -08:00
Bill Kendrick
8499dc57c5 dirwalk.c: Add debug option to show opendir() failures 2025-02-22 12:03:18 -08:00
Bill Kendrick
653f1a20c5 Windows: Load fonts.conf that ships w/ Tux Paint
Plus more comments & FIXMEs!
2025-02-22 02:52:05 -08:00
Bill Kendrick
96b91b9fba Search for fonts.conf on Linux/etc. more intelligently
Don't assume `/etc/fonts/fonts.conf`, but use $FONTCONFIG_PATH if set.
Don't assume `$HOME/.config/fonts.conf`, but use $XDG_CONFIG_HOME if set.
More comments in `load_user_fonts()`.
2025-02-22 02:00:56 -08:00
Bill Kendrick
2627b87316 CHANGES.txt: Note where Windows users fonts are read from 2025-02-22 01:22:47 -08:00
Bill Kendrick
223803e641 RELEASE: Reminder to create new milestone @ SourceForge 2025-02-16 12:06:09 -08:00
Bill Kendrick
bc47f0e36f Sync docs after INSTALL/FAQ update re: /SILENT 2025-01-24 00:27:43 -08:00
Bill Kendrick
473c649b9a Sync docs to grab /SILENT option in INSTALL & FAQ docs 2025-01-24 00:05:05 -08:00
Bill Kendrick
b88145b924 Regen DOCs after clean up (removal of "as of..." notes) 2025-01-12 10:40:45 -08:00
dolphin6k
277d902235 Changed "convert" to "magick convert" for build on Windows
Confirmed that latest Windows binary release of ImageMagick does
not provide "convert" command, which conflict with windows system
command, even as a legacy program.
In addition, currently "magick convert" or "magick composite"
style is a standard way of usage.
2025-01-12 17:17:40 +09:00
Bill Kendrick
5797769eb8 Sync docs after noting AppData & .tuxpaint are hidden...
...and ways to access them.
2025-01-09 00:52:54 -08:00
Bill Kendrick
e2f33a491b Sync docs after dropping Windows 7...
...from "saved files"
2025-01-06 14:11:29 -08:00
Bill Kendrick
233b3b90c6 Sync docs after bumping README & manpage dates 2025-01-06 00:56:10 -08:00
Bill Kendrick
bb675a9e4b Look for FontConfig "fonts.conf" on Haiku, too
h/t Luc
2025-01-03 21:21:44 -08:00
Bill Kendrick
1b293283a5 Makefile checks for uname -s of "NetBSD"
h/t Thomas
2025-01-03 13:43:37 -08:00
Bill Kendrick
68df71b325 Doc'ing Win user font loading
h/t Shin-ichi
2025-01-02 23:11:09 -08:00
dolphin6k
365ee3ea20 Load user's fonts also on Windows. 2025-01-02 16:33:57 +09:00
Mark Kim
0b28bf49e4 Minor macOS documentation corrections 2024-12-29 17:37:59 -05:00
Bill Kendrick
228b724cda Look in macOS specific location for fontconfig config
h/t Mark
2024-12-29 14:01:41 -08:00
Bill Kendrick
a9c1f8e94b Quickstart: Sync after note about Command vs Control 2024-12-29 13:25:09 -08:00
Bill Kendrick
a502a431e5 Sync quickstart guide, after adding "Paste" 2024-12-29 13:05:16 -08:00
Bill Kendrick
cd392a7864 WIP Load for fonts in locations specified by FontConfig
Checking for fonts in any locations specified by "<dir>"
entries found in system-wide and user-level FontConfig config files.
This allows more fonts, and user-specific fonts, to be found & loaded.

TODO - Looking in Un*x-specific `/etc/fonts/fonts.conf` and
`~/.config/fontconfig/fonts.conf`, and should look in the
correct places on other platforms.

NOTE - This adds a build dependency on `libxml-2.0`.
2024-12-29 02:14:54 -08:00
Bill Kendrick
cb6f190c58 in_circle_rad() - Avoid mult if obviously outside circle
Most places that invoke this already avoid outside testing
inherently (e.g., "for (y = -r; y <= r; y++) ..."), but a
few places don't, so I'm _hoping_ this might be beneficial to
avoid a handful of multiplication operations.

(Worst case, we can add the test optionally, and have it dump some
debug output, so we can track down places that waste clockcycles
testing points obviously outside a circle.)
2024-12-28 12:31:19 -08:00
Bill Kendrick
5be398cd6d WIP Adding "netbsd_..." OS variables in Makefile
Need to be told (1) if this is a good idea (else, back it out),
and if so (2) how to detect NetBSD when we set the OS variable
(is it just "uname -s" sending us "NetBSD"?)
2024-12-28 12:15:33 -08:00
Bill Kendrick
3d5f2001c1 Doc'ing emitter Magic tools 2024-12-26 21:24:33 -08:00
Bill Kendrick
1056db1fe4 Emitter Magic tools: Example screenshots for docs 2024-12-26 21:21:33 -08:00
Bill Kendrick
97841d41fa Doc'ing new emitter Magic tools in 0.9.35's appdata entry 2024-12-26 21:13:49 -08:00
Bill Kendrick
32587d99a0 Emitter Magic tools: Icons 2024-12-26 21:11:28 -08:00
Bill Kendrick
3cd9e1cbfd Emitter: Hearts: Sound effect 2024-12-26 21:01:05 -08:00
Bill Kendrick
1a9942f076 Emitter: Stars: Sound effect 2024-12-26 20:53:00 -08:00
Bill Kendrick
e35e320ea8 Emitter: Sparkles: Sound effect 2024-12-26 20:41:18 -08:00
Bill Kendrick
e1b9f29c2f Magic Emitters: Motion, gravity, & spawning
Hearts float up, sparkles float down (and sometimes spawn).
Everyone gets random initial movement.
2024-12-26 20:29:44 -08:00
Bill Kendrick
51e28bdfb0 Regen POT/PO after adding emitter magic tools 2024-12-26 01:10:50 -08:00
Bill Kendrick
47947e928a Ran pngout on Magic emitter images 2024-12-26 01:10:06 -08:00
Bill Kendrick
9822270759 Magic emitters: Support color 2024-12-26 01:05:30 -08:00
Bill Kendrick
51a335a293 More work on emitter magic tools
Added heart & sparkle shapes.  Allowing for randomized rotation &/or
animation frames.  (Sparkles has frames, but does not rotate;
hearts & stars have no frames, but can rotate; hearts only +/- 45 degrees.)

For https://sourceforge.net/p/tuxpaint/feature-requests/266
2024-12-25 23:49:27 -08:00
Bill Kendrick
323aa6c42d WIP: Emitter magic tools
Star image so far.  Lots more to do.
For https://sourceforge.net/p/tuxpaint/feature-requests/266/
2024-12-25 23:15:26 -08:00
Bill Kendrick
07e338d717 Text/Label paste: Word-wrap on space (eaten) or dash 2024-12-25 13:42:25 -08:00
Bill Kendrick
c7d449888d Syncing docs (README + EXTENDING) re: Text/Label "paste" 2024-12-25 11:45:31 -08:00
Bill Kendrick
023fafe54f Remove some OSK debugging printf()s I forgot about 2024-12-25 11:35:39 -08:00
Bill Kendrick
3278fff6d9 Keyboard layouts missing 4th "Paste"
So AltGr+Shift combo made it act incorrectly.
2024-12-25 11:08:42 -08:00
Bill Kendrick
0b94297c33 Noting Text/Label paste support in AppData file 2024-12-25 10:42:50 -08:00
Bill Kendrick
f9728edd05 Getting On-Screen Keyboard "Paste" button to work
I THINK I've got it.  I admit I don't understand the OSK code _at all_.
2024-12-25 10:39:49 -08:00
Bill Kendrick
9103b783ce Improving commentary for text_label_tool_enter() 2024-12-25 10:15:14 -08:00
Bill Kendrick
79bc5b2df4 WIP Adding "Paste" button to On Screen Keyboard
Appears, but does not yet actually invoke a paste event.
Does not have an icon.
2024-12-20 12:32:41 -08:00
Bill Kendrick
4de111df25 WIP - Text/Label tools: Ability to paste text clipboard
Lots still to do, but the basic functionality is there
(thanks to SDL2's clipboard functions).

For https://sourceforge.net/p/tuxpaint/feature-requests/95/
2024-12-20 01:36:08 -08:00
Bill Kendrick
199f11ce31 Less stdout noise when running Tux Paint
Avoid warnings when we cannot load non-existent SVGs by checking for file existence first.
(h/t Thomas K)

Add some "Info" and "Warning" labels to some output; improve some messages.

Free gerror that rsvg_handle_new_from_file() allocates.
2024-12-20 00:13:59 -08:00
Bill Kendrick
fa2f06792e Don't use Linux-specific invocation of "install"
Per Thomas, NetBSD's install(1) does not support '-t' and '-D' means
something else than on Linux.
2024-12-19 16:37:57 -08:00