rdb
3d3c2e7b7c
text: Give default font a default name
...
This is mostly so that the texture gets a name other than "_0"
2025-12-31 20:00:09 +01:00
rdb
347164103c
text: Don't try to use harfbuzz if freetype is not enabled either
2024-11-26 16:42:21 +01:00
rdb
d23e44e2f1
Merge branch 'release/1.10.x'
2024-11-08 11:36:02 +01:00
rdb
a6a386aab3
text: Fix text-native-antialias not properly taking effect
2024-11-07 11:34:02 +01:00
rdb
b51dd4d7bc
Merge branch 'release/1.10.x'
2024-11-06 22:52:54 +01:00
rdb
7926d1047e
text: Unbreak small caps support with text-use-harfbuzz
...
Fixes #1666
2024-10-31 15:01:06 +01:00
rdb
5f96cc592e
Merge branch 'release/1.10.x'
2024-10-27 09:40:52 +01:00
rdb
52a7224d6e
Fix various compiler warnings
2024-10-14 12:05:27 +02:00
rdb
b6515c881c
Merge branch 'release/1.10.x'
2024-05-14 22:47:08 +02:00
rdb
5da013e2e9
text: Properly handle surrogate pairs in text on Windows
...
Fixes #1629
2024-04-08 12:12:00 +02:00
rdb
1213d95560
Merge branch 'release/1.10.x'
2024-03-28 01:17:52 +01:00
rdb
237d27dfd9
text: Error instead of crash when glyph does not fit into page
...
Fixes #1626
2024-03-27 10:59:52 +01:00
rdb
06e72b5d7d
text: Add docstring for `set_text_color()`
...
Fixes #1621
2024-03-27 10:06:39 +01:00
rdb
40b824bdcc
general: Consistently name all bam factory functions make_from_bam
...
See discussion in #1630
2024-03-18 02:38:41 +01:00
rdb
0dad38d089
text: Enable text-use-harfbuzz by default, if compiled in
...
See #1591
2024-01-23 16:47:50 +01:00
rdb
23772c4722
text: Support explicit direction even with harfbuzz disabled
...
Fixes #1591
2024-01-23 16:45:39 +01:00
rdb
9517ffb320
Merge branch 'release/1.10.x'
2024-01-08 21:10:17 +01:00
kamgha
fe63dee524
Assorted docstring fixes
...
Closes #1588
2024-01-08 19:53:46 +01:00
WMOkiishi
ea84547805
general: Mark many constructors as `explicit`
...
Closes #1514
Fixes #1431
2023-08-02 08:18:43 +02:00
rdb
cc861cdaa1
Merge branch 'release/1.10.x'
2023-08-02 08:09:26 +02:00
rdb
3c9aea1ee1
text: Fix missing epvector.h include in textAssembler.h
2023-08-02 07:51:46 +02:00
rdb
5e26aae1ff
cleanup: Fix assorted issues uncovered by clang-tidy
2023-02-12 18:17:03 +01:00
rdb
b09a8a84ec
Merge branch 'release/1.10.x'
2023-02-03 14:52:39 +01:00
rdb
51d0a55264
general: Fix silly new clang warning about unprefixed `std::move()`
2023-01-31 15:38:02 +01:00
rdb
d801e00c0f
CMake: don't re-export symbols from libharfbuzz.a
...
To match 84a69e1689 (fix for #1391 )
2022-11-13 12:10:43 +01:00
rdb
b8c53be8fd
text: Add missing fields to TextNode::CData copy constructor
2022-11-05 14:55:56 +01:00
rdb
72f98ec30d
gobj: Delete assignment operator of Geom* classes
...
They are unused and it would probably be a bad idea to try to use them.
2022-03-09 16:23:37 +01:00
rdb
46c1b887ea
Fix heap alignment with SSE2 on 32-bit Windows by inheriting MemoryBase
...
Fixes #510
2022-03-02 09:57:44 +01:00
rdb
fac6916151
pgraph: Major traversal optimizations
...
In particular, these optimize the traversal of nodes that are not in view, which are discarded more efficiently.
This change affects both the cull and collision traversers.
2021-11-16 17:30:33 +01:00
rdb
43fb82fa66
gobj: Add config switch for Panda not to default to packed vertex colors
...
See #981 . Setting `vertex-colors-prefer-packed` to false will make Panda default to OpenGL-style vertex colors, which is useful if are targeting OpenGL and not DirectX 9, avoiding a potential performance cost.
2021-03-25 23:15:58 +01:00
rdb
ff80adc680
Merge branch 'release/1.10.x'
2021-03-05 11:59:21 +01:00
rdb
9be2f307c5
text: Fix glyphs with flipped UVs not being processed correctly
...
This caused the cheesy-accent code to not flip the caron correctly.
2021-03-04 20:06:51 +01:00
rdb
8dd3301c43
text: Fix issue with TextNode::set_text() called from non-App stage
...
Because TextEncoder is not pipeline-cycled, text_changed() should propagate text changes up to stage 0.
See #1070 ; this caused the frame rate meter to show 0.0 fps most of the frames.
2020-12-21 16:53:05 +01:00
rdb
ac4faf3d74
text: Make TextNode pipeline-cycled
...
Fixes #1070
Note that text property changes are not pipeline-cycled at the moment.
2020-12-12 14:05:48 +01:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
1a654cba04
CMake: Record the location that headers are installed
...
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00
Sam Edwards
19ed9f6b47
Merge branch 'master' into cmake
2019-08-24 18:07:12 -06:00
Sam Edwards
abc941245e
general: Fix missing includes (and one forward declaration)
2019-08-24 18:05:28 -06:00
rdb
11990833fe
text: fix compilation warnings with implicit int->char32_t cast
2019-07-10 11:20:15 +02:00
Sam Edwards
b8f3c7eb63
CMake: Move some symbols from dtool_config.h to -D flags
...
The symbols moved aren't used in any headers, so they don't
have to be in the installed dtool_config.h. Removing them
keeps the recompiling to a minimum when an optional feature
is toggled.
2019-04-15 22:16:05 -06:00
Sam Edwards
f8161cc529
Merge branch 'master' into cmake
2019-03-12 02:03:16 -06:00
rdb
9d12a4c437
general: improvements to doxygen API reference:
...
* In C++ reference, only pick up classes defined in .h file
* Add a few excludes to C++ reference that aren't public API
* On class index pages, reduce number of columns
* Add @since for some methods/classes that are new in 1.10.0
* Fix/improve a few docstrings here and there
2019-01-23 22:24:02 +01:00
Sam Edwards
99fee1a64d
CMake: Assign COMPONENT and EXPORT to all targets
2018-12-06 17:48:44 -07:00
Sam Edwards
df805bd02b
Merge branch 'master' into cmake
2018-11-28 21:54:58 -07:00
rdb
97d4e32a06
general: use nassert_raise instead of nassertv(false) et al
...
Even a brief error message in the assertion is infinitely more useful to a user who is not at home in the source code, especially for assertions that may reasonably be triggered by honest user mistakes.
2018-11-28 17:35:20 +01:00
Sam Edwards
15a78c55bc
CMake: Detect and use HarfBuzz when available
2018-11-02 23:37:26 -06:00
Sam Edwards
58c065d970
Merge branch 'master' into cmake
2018-10-28 05:11:14 -06:00
rdb
fb52a8e15e
text: fix deadlock in TextNode::write
...
Fixes #431
2018-10-28 11:41:05 +01:00
Sam Edwards
ea1b50a522
Merge branch 'master' into cmake
2018-10-13 16:15:35 -06:00
rdb
9061fd9416
dtoolutil: fix TextEncoder methods for Python 3
...
The no-arguments get_text() and set_text() will now return Unicode strings in Python 3, but passing in an encoding will make them return/take bytes objects.
In Python 2, they all take regular strings, but Unicode is also accepted by the no-argument get_text() and set_text().
In the future we probably want to remove most of this interface for Python users, to whom all this is unnecessary since it duplicates functionality already in the standard library.
2018-10-08 22:14:51 +02:00