Commit graph

3103 commits

Author SHA1 Message Date
Bill Kendrick
e70f80c831 Ran indent.sh on emitter.c & tuxpaint.c 2025-04-19 12:51:52 -07:00
Daniel Nylander
83ea4fae5f Updated Swedish translation 2025-04-19 16:24:23 +02:00
dolphin6k
f73647de18 eliminated C99 dependency 2025-04-02 21:42:26 +09:00
dolphin6k
a33fd73347 Updated Japanese translations 2025-03-29 11:39:40 +09:00
Bill Kendrick
e74cb54ccc Don't use stat() on Android
h/t Pere
2025-03-27 20:20:02 -07:00
Bill Kendrick
e3f9e5a246 Trying #include <wctype.h> all the time, too
It was specifically NOT being done under Haiku (which Luc notes
caused a "implicit declaration of function" warning), BeOS (moot?),
macOS (__APPLE__)[*], and Android[*].

[*] I've asked Mark & Pere to check that macOS & Android builds are
still happy.  See tuxpaint-maintainers thread
https://sourceforge.net/p/tuxpaint/mailman/tuxpaint-maintainers/thread/Z-O0V3aa6joXl6zl%40bill-t480s/#msg59165314
2025-03-27 10:47:28 -07:00
Bill Kendrick
6683da3d22 Always #include <wchar.h>
It was happening in both an #if and its corresponding #else
2025-03-27 10:45:32 -07:00
Jacques Chion
2f638092a0 updating 2025-03-26 11:05:22 +01:00
Bill Kendrick
e80254df51 Ran indent.sh to re-indent all source code 2025-03-24 19:33:13 -07:00
Bill Kendrick
75fbc97e9f Bump date in docs & AppData file
README
CHANGES
manpage
2025-03-24 19:14:30 -07:00
Pere Pujal i Carabantes
708973ebba Updating Catalan. 2025-03-19 23:06:11 +01:00
Bill Kendrick
65760a5867 German: Try to soft-word-wrap a few tool labels
(Eraser, Undo, and Redo)
2025-03-06 01:38:16 -08:00
Bill Kendrick
db58de2953 German translation update
h/t Holger W. (via Jonathan C.)
2025-03-06 01:22:56 -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
bb675a9e4b Look for FontConfig "fonts.conf" on Haiku, too
h/t Luc
2025-01-03 21:21:44 -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
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
97841d41fa Doc'ing new emitter Magic tools in 0.9.35's appdata entry 2024-12-26 21:13:49 -08:00
Bill Kendrick
51e28bdfb0 Regen POT/PO after adding emitter magic tools 2024-12-26 01:10:50 -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
023fafe54f Remove some OSK debugging printf()s I forgot about 2024-12-25 11:35:39 -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
3d2dab5fc2 Improved color picker behavior
Better behavior when clicking/tapping and dragging hue/saturation box
and value slider.
2024-11-15 00:59:46 -08:00
Bill Kendrick
79ce7a87ca Bump to 0.9.35 2024-11-15 00:19:10 -08:00
Bill Kendrick
8d6179a514 indent.sh: Add reminder to clean up backup ~ files 2024-10-23 23:30:44 -07:00
Bill Kendrick
c88616e13e Don't Magic switch-out & -in on pointless Ctrl-R/Z
h/t Pere for a correction for Ctrl-R (I also applied to Ctlr-Z)
and Miyagi for reporting the issue

Closes https://sourceforge.net/p/tuxpaint/bugs/294/
2024-10-23 20:55:13 -07:00
Pere Pujal i Carabantes
d06489e779 Updating Catalan. 2024-10-22 00:24:16 +02:00
Bill Kendrick
97dc7bc9c3 Sync docs after "What's New" update 2024-10-21 00:43:13 -07:00
Bill Kendrick
849cc46d10 New "Impasto" brush
Sneaking in before 0.9.34 final >:-)
2024-10-20 23:47:01 -07:00
Bill Kendrick
244ba7b76c Regen POT & PO after running indent against source 2024-10-20 11:26:16 -07:00
Bill Kendrick
44d7d0ee5d Re-run indent.sh under GNU indent 2.2.13
Slight change to its default behavior re: pointer variables
(before: "type * var"; now seems to prefer: "type *var").
2024-10-20 11:22:30 -07:00
Bill Kendrick
f91923eddf Avoid potentially unset variable in get_fname.c 2024-10-20 11:02:49 -07:00
Bill Kendrick
5e8eee5e3e Two new templates: Clouds from airplane & Lough Leane 2024-10-12 21:58:51 -07:00
Bill Kendrick
a407ce1295 New brush: Smoke
Based on "Smoke" in Krita 4 brush bundle.
2024-10-12 21:05:58 -07:00
Bill Kendrick
7cb752edca New brush: Graphite
Based on Graphite Grain from Krita 4 brush bundle.
2024-10-12 20:58:07 -07:00
Bill Kendrick
cf42c4b265 New brush: Paint Splats
Based on Paint Splats from Krita 4 brush bundle.
2024-10-12 20:45:13 -07:00
Bill Kendrick
e5b20f903f New brush: Water (still)
Based on "Water Still" from Krita 4 brush bundle.
2024-10-12 20:35:54 -07:00
Bill Kendrick
bdb490898d New brush: Spines
Lifted from Krita 4 brushes bundle.
2024-10-12 20:22:07 -07:00