Commit graph

4770 commits

Author SHA1 Message Date
Bill Kendrick
e59686f942 Stop using rsvg_handle_get_dimensions
It is deprecated.  Using rsvg_handle_get_intrinsic_size_in_pixels()
now instead.
2023-06-18 13:20:43 -07:00
dolphin6k
76a2c5f3fd Set executable flag to the fake inkscape 2023-06-18 13:21:32 +09:00
Bill Kendrick
8e9b33b22e Wrapper around convert to avoid Inkscape use
See comments in the script
2023-06-17 11:42:39 -07:00
Bill Kendrick
c7f1e0a257 Mend a minor compiler warning 2023-06-15 16:52:11 -07:00
Bill Kendrick
7febf719d0 Thumbnail Makefile targets quotes around paths
Wrap new $PATH stuff done (to get dummy 'inkscape' used,
for rsvgconvert purposes) in quotes to try and help with
build problems Shin-ichi had with the Windows version.
2023-06-13 22:18:08 -07:00
Bill Kendrick
38b9dc657f More info in fonts.c re: locale fonts (fallbacks) 2023-06-13 22:08:33 -07:00
Bill Kendrick
71120af4aa Rebuild zh_TW.ttf (Chinese Traditional) subset font
...that ships with Tux Paint.
2023-06-13 21:46:07 -07:00
Bill Kendrick
104c27086b Bump some file update dates! 2023-06-13 00:27:50 -07:00
Bill Kendrick
0437b898ca Allow primary & fallback locale fonts to be specified
e.g., for Chinese Traditional, try to use the full font (that
we supply as an optional download), then try the 'subset' font
that we ship with Tux Paint.
2023-06-13 00:25:49 -07:00
Bill Kendrick
0bfc8c18c1 Looks like SDL2_Pango can find our fonts now
Made sure to add our font dir (e.g., /usr/local/share/tuxpaint/fonts/)
to FontConfig's directories before trying to load uifont!

Also, update font names to match what we ship with Tux Paint.
WIP -- Would like to supply some alternatives.
2023-06-12 23:51:07 -07:00
Bill Kendrick
794ea691e8 WIP Trying to get SDL_Pango (& FontConfig) to see our locale fonts 2023-06-12 22:13:19 -07:00
Mark Kim
fcba197c90 default font for Korean 2023-06-13 00:00:20 -04:00
Bill Kendrick
cf94635713 Fake 'inkscape' to allow rsvgconvert to be used
Tim Dickson wrote in --

  I figured out the cause of the out-of-tree fontconfig cache
  creation, and (with help from another packager) a fix.
  The problem only occurs when inkscape is installed (which changes the
  target tool that imagemagik uses for converting svg files from
  rsvgconvert to inkscape's svg conversion program.)
2023-06-12 20:35:29 -07:00
Mark Kim
eb430d0055 list-fonts utility for debugging on macOS 2023-06-10 17:53:34 -04:00
Mark Kim
d6dbd39231 Set FONTCONFIG_PATH before --listfonts on macOS
Also, search more system folders for fonts on macOS.
2023-06-10 16:20:47 -04:00
Bill Kendrick
1d212475b9 More locale font defaults
Based on what we have as plain TTF files in the repo,
and what's available in Ubuntu.
2023-06-08 01:28:20 -07:00
Bill Kendrick
3c8f25e6e9 Ability to specify fonts on a per-locale basis
Add to the list found in `src/fonts.c` (use language IDs
found in `src/i18n.h`, e.g. "LANG_DE" for German).
h/t Shin-ichi for the suggestion

Closes https://sourceforge.net/p/tuxpaint/feature-requests/240/
2023-06-08 00:40:43 -07:00
Bill Kendrick
1f623cbe36 Finished exported template deletion feature 2023-06-08 00:08:07 -07:00
Bill Kendrick
2260d66b4e Forgot a 192x192 icon install in updated Makefile
h/t Tim
2023-06-07 23:20:48 -07:00
Shin-ichi TOYAMA
07c550e6a4 Updated .spec file 2023-06-07 23:06:31 +09:00
Bill Kendrick
6b0bc39087 "PACKAGE_ONLY" Makefile var for non-pollutant icon install
A new `PACKAGE_ONLY` variable to Makefile can be used to
place launcher icon files into $(DESTDIR)$(PREFIX), rather
than using `xdg-...` tools to install them.  (Avoids polluting
local filesystem while generating packages, e.g. for Slackware Linux)

h/t Tim Dickson
2023-06-07 00:39:00 -07:00
Bill Kendrick
375c079b85 Some clean-up of new strip_quotes() 2023-06-06 22:18:19 -07:00
dolphin6k
ab7567f2c0 Strip quotes around option argument. 2023-06-07 09:56:03 +09:00
Bill Kendrick
6864aef2e6 Sync manpage after italics changes 2023-06-04 16:21:41 -07:00
Bill Kendrick
596c6ea0cc TODO/FIXME re: uifont stuff
h/t Shin-ichi for help with this
2023-06-04 16:21:20 -07:00
Bill Kendrick
65f3c805d1 Better debug & warning output re: wordexp() shell expansion 2023-06-03 14:17:03 -07:00
Bill Kendrick
fe33acc716 Don't crash on un-wordexp()'able arguments!
We run shell expansion on configuration arguments,
e.g. `printcommand`, but it would crash if the config
file's input was not quoted, e.g.

  printcommand=pstopdf - - > $HOME/print.pdf

Now echo'ing an error to stderr and moving on.
Be sure to quote, e.g.

  printcommand="pstopdf - - > $HOME/print.pdf"
2023-06-03 14:10:13 -07:00
Bill Kendrick
0e359a1fba tuxpaint --listfonts -- sort the results 2023-06-01 23:48:19 -07:00
Bill Kendrick
1cf2fa245d --listfonts option to show all font families Pango finds 2023-06-01 23:31:04 -07:00
Bill Kendrick
e85eb98a57 More changelog updates 2023-06-01 23:13:41 -07:00
Bill Kendrick
ab1d1d3ebd Docs - Image for Open->Template button 2023-06-01 23:12:25 -07:00
Bill Kendrick
34b0760aea WIP Ability to Erase persoanl templates from New
Sync docs
2023-06-01 22:48:56 -07:00
Bill Kendrick
4c757c2a36 WIP Beginning work on "Erase" exported templates via "New" 2023-06-01 22:19:07 -07:00
Bill Kendrick
76f478e504 Rework "noerase" changelog entry 2023-06-01 21:54:24 -07:00
Bill Kendrick
6755d67937 Sync docs to grab "--noerase" option documentation 2023-06-01 21:44:45 -07:00
Bill Kendrick
437802252b "--noerase" option to disable Open->Erase option
Will also be used to remove the New->Erase option we plan
to add, to allow deletion of exported templates.

WIP - Need to update docs.
2023-06-01 21:29:24 -07:00
Bill Kendrick
1b6ee72e87 "uifont" option: tell us what we wanted & what we got
The requested font & actual font loaded will be echo'd to STDOUT
when specifying the `uifont` option.

This uses Pango library directly (I was unable to convice SDL2_Pango.h
to actually notice that pango.h was #include'd before it, and expose
its SDLPango_GetPangoFontDescription() function!).  This is okay,
since we want to also add a "--uifont list" option (or similar),
that will list all of the available fonts, if a user wishes to
query them.  (And similar code will be added to tuxpaint-config to make
the setting available as a pull-down, rather than (or as well as) a
freeform type-in field.)
2023-06-01 00:20:41 -07:00
Bill Kendrick
64eeec1a98 Doc'ing some TODO items re: uifont and make-Template
h/t Pere & Shin-ichi for feedback
2023-05-31 10:45:09 -07:00
Bill Kendrick
71ff56df96 Sync docs after uifont addition, etc. 2023-05-29 13:40:53 -07:00
Bill Kendrick
12ff955f68 Adding more instructions to RELEASE
Even I can't keep up with all the places to document new
options. 8^o
2023-05-29 13:34:42 -07:00
Bill Kendrick
ba9c5b30e8 Doc'ing 0.9.31 changes so far, in appdata XML file 2023-05-29 13:33:10 -07:00
Bill Kendrick
83c4cbc676 WIP New "--uifont" option to specify UI font
If not specified, or "default" is specified (e.g., to override
a higher-up config file setting), it will fallback to what we
have #define'd in fonts.h as PANGO_DEFAULT_FONT, "DejaVu Sans".

It appears to fallback to this (or a reasonable fascimile) if
the font specified by the "uifont" option doesn't exist
(e.g., "tuxpaint --uifont=ABCD1234").

For https://sourceforge.net/p/tuxpaint/feature-requests/146/
2023-05-29 13:13:58 -07:00
Bill Kendrick
b4a550a6e1 Add --[no]templateexport to --help output 2023-05-29 12:43:11 -07:00
Bill Kendrick
b452d84d25 Improved how trans dir created
Having it as a Makefile target caused po->mo conversion to happen
every time, even if the MO files existed. >:-(
2023-05-29 12:36:56 -07:00
Bill Kendrick
813978d9ef Template export is wrapped up
Tux Paint Config. has an option to disable/enable.
Closing https://sourceforge.net/p/tuxpaint/feature-requests/236/
2023-05-29 12:31:43 -07:00
Bill Kendrick
08832773ec Sync docs (readme<->extending re: open/template) 2023-05-29 11:13:49 -07:00
Bill Kendrick
8ba1313c21 POT/PO after adding new Template creation feature 2023-05-29 10:52:10 -07:00
Bill Kendrick
65378f6fdd Ability to disable Template creation from Open dialog 2023-05-29 10:50:55 -07:00
Bill Kendrick
36d7e0daf3 Sync docs after a bunch of changes, including make-Template 2023-05-29 10:23:27 -07:00
Bill Kendrick
9ab7fdba13 Ensure trans dir exists when making .mo files
Helps get `make clean && make -j` (parallel build) to work.
h/t bkw @ slackbuilds
2023-05-28 11:15:54 -07:00