Commit graph

2679 commits

Author SHA1 Message Date
Bill Kendrick
034cbf5b5a Refresh POT/PO for Circles, Rays, Fur magic tools 2023-01-29 21:55:29 -08:00
dolphin6k
0f27735ce7 Updated Japanese translations 2023-01-28 14:48:45 +09:00
Bill Kendrick
34de8311db Zoom/Perspective: Support background color changes
When in the middle of adjusting a drawing with Zoom or Perspective,
you could change the color.  However, the background would not
relfect this until you further adjusted the zoom/perspective.

Now, a color change causes the background to update immediately.

This involved updating the Tux Paint Magic API to send more
arguments to each Magic tool's "XYZ_set_color()" function,
which means a bump in the API version.

(Forthcoming, all other Magic tools will have their set_color()
functions updated.)
2023-01-25 02:12:57 -08:00
Bill Kendrick
bf7e8897d6 Remove unfinished "Label" text on New or Open
Text from unfinished "Label" tool input would appear after
creating a New image or Opening an existing one.  Mended.
Closes https://sourceforge.net/p/tuxpaint/bugs/246/

Mostly by Pere.
2023-01-23 22:04:00 -08:00
Pere Pujal i Carabantes
32dc277133 Updating Catalan 2023-01-21 23:44:31 +01:00
Bill Kendrick
3ba15f7b70 Update POT/PO after adding Maze magic tool strings 2023-01-21 03:06:00 -08:00
Bill Kendrick
51c270b519 Avoid window larger than sole display size is capable of
If only one display is available, when running in windowed mode
and asking for Tux Paint to appear in a width and/or height larger
than the display's dimensions, Tux Paint will fall back to
the maximum(s) the display is capable of.

e.g., on my laptop with 1920x1080, running "tuxpaint --2048x2048"
will fall back to 1920x1080 (and display a warning to stdout).
However, if I have my external monitor (also 1920x1080) attached,
it will happily open a 2048x2048 window.  Not perfect, but an
improvement.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/113/
2023-01-19 00:56:07 -08:00
Bill Kendrick
949438e2fb Bring back support for SDL_VIDEO_WINDOW_POS envvar
SDL1.2 supported "SDL_VIDEO_WINDOW_POS" environment variable,
but SDL2 does not; so reimplemented it ourselves. (See ENVARS docs.)
2023-01-19 00:18:52 -08:00
Bill Kendrick
bdbc8898ac POT/PO update after adding Rivulet magic 2023-01-16 17:28:51 -08:00
Bill Kendrick
b373ac8808 WIP - Crop whitespace from label text for better fit
For example, when using a font like OpenDyslexia which has a very
large line spacing, the text gets shrunk since the overall bitmap
is too big for the space on the buttons (compared to the contents).

Cropping the whitespace will allow the text to remain larger.

WIP - The method of cropping isn't great.  Text with descenders
appear higher than text without, causing terrible alignment.
So for now, the new `crop_surface()` code is not being used.

Also, replace some "#ifdef DEBUG printf(...) #endif" with
a simple "DEBUG_PRINTF(...)".  And other minor tweaks.
2023-01-11 01:56:11 -08:00
Bill Kendrick
65852f2534 Corrected 'keep aspect ration' option in zoom()
Scaling of button labels often caused them to stretch wider
than they should have.  (e.g., "tuxpaint --1024x768 --buttonsize=78")
2023-01-11 00:46:31 -08:00
Bill Kendrick
8df7650f82 Credit Bulgarian translation update 2023-01-07 01:22:29 -08:00
Vankata453
e37943abfe Update Bulgarian translation 2023-01-06 18:54:58 +02:00
Bill Kendrick
d132f96075 Changing default UI font to DejaVu Sans
Per discussion over in
https://sourceforge.net/p/tuxpaint/mailman/tuxpaint-devel/thread/CADZCvhDRn174fTc0e3K6Qxa8pHjXCvwmUr9p3frdzh7YksiS7A@mail.gmail.com/
2023-01-06 00:59:56 -08:00
dolphin6k
bea8ba8111 Updated Japanese translations 2023-01-04 18:41:34 +09:00
Bill Kendrick
35dbd40bf6 Disallow Ctrl-Z in certain situations
Closes https://sourceforge.net/p/tuxpaint/bugs/239/
2023-01-03 22:30:45 -08:00
Bill Kendrick
ff10b021b7 Googly Eyes: Forgot to gettext() the sizes
h/t Pere
2023-01-02 12:00:44 -08:00
Pere Pujal i Carabantes
eeb5eee443 Updating Catalan. 2022-12-29 23:29:10 +01:00
dolphin6k
7d8125a866 Updated Japanese translations 2022-12-29 15:08:05 +09:00
Bill Kendrick
7a1c90031c Disabling anniversary confetti animation on title screen 2022-12-28 21:03:39 -08:00
Bill Kendrick
9674a05e63 Continued WIP: Googly Eyes
Needs sound effect, an icon, and boundary-limiting to keep the
pupil inside the background.
2022-12-24 11:47:35 -08:00
Bill Kendrick
b4f63f17ff POT/PO rebuild & RELEASE change re: appdata file
(org.tuxpaint.Tuxpaint.appdata.xml.in)
2022-12-24 11:16:30 -08:00
Bill Kendrick
c13c6e1dcb Fill: Paint & Radial; bounds check for touched[]
Avoid reading outside of the bounds of the `touched[]` array,
to help prevent crashes.

h/t Miyagi Andel for reporting,
Shin-ichi TOYAMA for pinpointing the issue,
and Pere Pujal i Carabantes for providing a solution

Closes https://sourceforge.net/p/tuxpaint/bugs/269
2022-12-23 00:08:52 -08:00
dolphin6k
2c6c50205c Added 'yen' to the spare string for font scoring.
Also made unneccessary translations blank for unused scoring strings.
2022-12-22 23:07:48 +09:00
Bill Kendrick
4534fe56de De-translated "<N>spare-Nx" strings when used literally (pt 2)
Missed `gd.po`
2022-12-21 01:58:41 -08:00
Bill Kendrick
0257d37b27 De-translated "<N>spare-Nx" strings when used literally
These strings have been around a long time, and are only now
being utilized.  Their purpose is for translators to provide
some characters which their language uses, so Tux Paint can
score fonts (and raise them to the top of the list in the
Text and Label tools) higher when they support those characters.

Many translators either left the strings as-is (e.g., "<9>spare-9b"),
or translated them literally (e.g., "<9>yedek-9b" & "<1>додаткова-1a"),
so removed those (replacing with `msgstr ""`).
2022-12-21 01:48:08 -08:00
dolphin6k
a552f228d2 Enabled spare strings for font scoring. 2022-12-21 00:03:17 +09:00
dolphin6k
c8232adba5 Reverted to the original font scoring method. 2022-12-18 13:55:15 +09:00
dolphin6k
935ffb4839 Forgot to multiply the score by 10 2022-12-18 00:07:11 +09:00
dolphin6k
2c61836cc6 Updated Japanese translation for scoring locale specific character 2022-12-18 00:03:58 +09:00
dolphin6k
fcd18dc9e8 Added font scoring string to evaluate locale specific characters. 2022-12-17 23:55:04 +09:00
Bill Kendrick
0517b4392c Update URL to https://tuxpaint.org/ everywhere
Also, add other social media accounts to list of places to
announce Tux Paint in RELEASE docs.

Also, list a ton more options missing from default example config file
"src/tuxpaint.conf"
2022-12-11 01:29:25 -08:00
dolphin6k
c9193bae2e Removed wrong comment. 2022-12-11 17:36:36 +09:00
dolphin6k
33ef6456bd Returning zero instead of cmp from do_surfcmp() stopped listing all available localized labels on font selector.
In addition, removed Hiragana from translated strings for font scoring.
I have to learn more about this method before doing so.
2022-12-11 10:34:48 +09:00
Bill Kendrick
5ccc950447 dirwalk comments re: font scoring -> POT/PO files; Japanese tweaks
Ensuring that commentary about what font-scoring strings like
"oO" and ",.?!" are for make their way to the POT and PO files.

Also, adding some Hiragana to some of these strings in ja.po
(and updating some (c) dates in its comments).
2022-12-09 22:29:41 -08:00
Bill Kendrick
1f22332415 Use Japanese characters, not "Aa", in font selector when available
Also closes https://sourceforge.net/p/tuxpaint/bugs/266/ by
using code based on Pere's patch.  Thanks to Shin-ichi & Pere!
2022-12-09 22:11:32 -08:00
Mark Kim
cf92625df5 enable forked fonts on macOS 2022-12-03 12:01:22 -05:00
Mark Kim
3849480fd4 Pango loads Tux Paint-supplied fonts on macOS.
Previously Pango loaded system-supplied fonts instead, which could lead
to fonts not rendering in a human-readable text.  This change fixes
https://sourceforge.net/p/tuxpaint/bugs/265/
2022-12-02 22:57:38 -05:00
dolphin6k
7a630264cb Addressed a compile-time warning on windows. 2022-11-18 16:08:07 +09:00
dolphin6k
e9a0d7aaf5 Removed warning regarding fribidi_log2vis(). 2022-11-18 14:16:23 +09:00
dolphin6k
f3d177621b Corrected compile-time error on old platforms (ex: RHEL7) 2022-11-18 12:10:35 +09:00
Bill Kendrick
9d70b5837c WIP: Cleaned up some compile-time warnings...
...that cropped up in SDL2 branch.
2022-11-14 23:21:45 -08:00
Bill Kendrick
a530896e20 Squelch a debug output
s/printf(...)/DEBUG_PRINTF(...)/
2022-11-14 22:55:09 -08:00
Jacques Chion
88e4563e68 fixing one mistake 2022-11-02 09:54:38 +01:00
Bill Kendrick
16839df8ba Brush spacing improvements
Each brush's initial spacing (calculated, or loaded
from .dat file) is recorded.  When the spacing UI
is used to select a close, but not-precisely-the-same,
spacing option, the default is chosen ("nudged" to it).

h/t Pere for pointing this out (e.g., "aa_round_seethru_05.png")

Also, meter's lowest value has a sliver dark blue.
2022-10-25 00:36:58 -07:00
Bill Kendrick
322780d735 Regen POT & PO in tuxpaint
First time in a while. Appears indentation has caused some
comments to be lost.  Need to sort that out :-/

e.g.

  // Description of an octagon
  gettext_noop("An octagon has eight equal sides."),
  gettext_noop("An octagon has eight equal sides."),

still works, but

  // Description of a rhombus
  gettext_noop
    ("A rhombus has four equal sides, and opposite sides are parallel."),
  gettext_noop
    ("A rhombus has four equal sides, and opposite sides are parallel."),

has lost the comment in the POT & PO files. >:-(
2022-10-18 01:30:10 -07:00
Bill Kendrick
3160b07a3c Punjabi translation update 2022-10-14 00:25:01 -07:00
Jacques Chion
2e92f91ece Translation Lightning is better now, without accent 2022-10-11 11:04:13 +02:00
Jacques Chion
93377bff8b Translation of lightning was bad, perhaps with the lettre E with accent 2022-10-11 09:56:44 +02:00
Bill Kendrick
9f887944f5 Portuguese l10n update
h/t Hugo
2022-10-07 02:26:44 -07:00