attila
fab1de34ab
Add ShapedText::accessTogetherWith and remove ShapedText::access
...
Since the original function template has been exposed, we can now use it
directly. Also ShapedText::Detail has been removed, because it wouldn't
work across module boundaries.
2025-03-13 12:16:16 +01:00
attila
1b595311d0
Move ShapedText to the detail namespace and expose it in the headers
...
This makes it accessible for the new TextEditor implementation in
juce_gui_basics.
2025-03-13 12:16:16 +01:00
attila
04d9d36b15
TextLayout: Fix ignored AttributedText::getLineSpacing() parameter
2024-07-22 13:16:06 +02:00
reuk
b35688d9a4
SimpleShapedText: Avoid wrapping when WordWrap::none is requested
2024-07-11 18:00:07 +01:00
attila
3c4aa8d0ce
TextLayout: Preserve leading whitespaces
...
This fixes the CodeEditorComponent regression present since
03e79f8f12 .
2024-06-27 15:31:57 +00:00
reuk
308619fb5f
TextLayout: Fix unused variable warning
2024-06-19 15:06:23 +01:00
attila
51955453ef
Remove TextLayout::createNativeLayout()
2024-05-30 12:21:35 +01:00
Oliver James
38f299a054
TextLayout: Respect the ReadingDirection parameter of AttributedString
2024-05-30 12:21:35 +01:00
Oliver James
03e79f8f12
TextLayout: Use new shaping engine
...
By utilising ShapedText in the TextLayout implementation.
2024-05-29 15:11:57 +02:00
reuk
1560f87111
LowLevelGraphicsContext: Replace glyph drawing functions with single drawGlyphs()
2024-04-18 14:16:01 +01:00
Tom Poole
94d98a2b10
Update licensing information
2024-04-16 11:39:35 +01:00
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2023-04-04 19:55:11 +01:00
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4
Update copyright banners
2022-04-04 12:36:32 +01:00
ed
b760620e05
TextLayout: Ensure that line origin is set correctly when line starts with whitespace or newline glyphs
2021-09-02 08:35:14 +01:00
ed
2be72f6acd
Partially revert e1366361
...
This fixes a bug when creating a TextLayout with whitespace at the start of lines.
2021-08-31 12:15:15 +01:00
ed
e1366361ed
TextLayout: Skip whitespace tokens in TokenList::createLayout() to fix misalignment when using horizontally centred justification
2021-07-07 10:21:38 +01:00
reuk
55f6f3227d
TextLayout: Tidy up special member functions
2021-07-05 12:21:36 +01:00
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
2020-07-01 10:00:43 +01:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
Tom Poole
1d2fc2ddd5
macOS: Fixed an issue restoring graphics state after drawing an AttributedString
2019-12-30 15:12:02 +00:00
Tom Poole
c6a4bb567e
Removed a leaking UnitTest
2019-08-14 12:26:09 +01:00
reuk
edf99d171f
TextLayout: Fixed some bugs setting stringRanges
2019-08-08 17:58:17 +01:00
ed
eaf0f990d4
Replaced all uses of static_cast<Type&&> with std::move
2018-11-28 17:29:20 +00:00
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
2018-04-19 20:27:47 +01:00
jules
48a5fbd333
Another batch of ScopedPointer cleanups
2018-01-10 14:49:57 +00:00
jules
eac4f9112f
Fix for the TextLayout when drawing at non-origin coords
2017-11-08 15:15:22 +00:00
jules
e8490fbf71
Workaround for a Visual Studio error
2017-11-01 09:16:06 +00:00
jules
0933ce4be8
Optimisation for drawing of large TextLayouts that go beyond the top and bottom of the graphics clip region
2017-10-31 17:30:50 +00:00
jules
06d6a08892
Tweaked TextLayout::createLayoutWithBalancedLineLengths() to improve line length balancing
2017-09-27 10:50:09 +01:00
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
2017-09-08 08:59:55 +01:00
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
2017-04-27 14:43:04 +01:00
jules
89ad7eb0a4
Modernised some code in some text layout classes, and made TextLayout draw underlining where the font asks for it
2017-04-06 10:55:48 +01:00
hogliux
5fe3289256
Fixed several Android text rendering bugs
2017-03-01 16:16:34 +00:00
hogliux
9f3fb1c0a6
Added a compiler error if your compiler is too old and removed numerous code checks for old compilers which are now deprecated
2017-02-01 17:18:06 +00:00
jules
871c3a9108
Removed some code that prevented RTL TextLayouts having their bounds adjusted
2016-04-14 16:34:26 +01:00
jules
1a7caaa58f
Refactored AttributedString so that every part of the string has a single font and colour associated with it, to avoid some problems caused by fonts being undefined.
2016-01-03 13:16:18 +00:00
jules
eb99390413
TextLayout: made the fallback layout algorithm make use of AttributedString::getLineSpacing()
2015-11-25 09:58:16 +00:00
hogliux
c7b8e77031
Update copyright notice
2015-07-22 15:59:34 +01:00
hogliux
1986f9b2ad
Fix TextLayout height when string is empty
2015-04-08 10:43:11 +01:00
jules
a49baa3e52
Modified TextLayout creation functions to take an optional maximum height as well as a maximum width.
2014-12-29 12:07:31 +00:00
jules
349d3d423f
Fix for software text layout colour of single-character strings.
2013-10-11 21:56:44 +01:00
jules
13304ac410
Text layout fix when using newlines with certain fonts on OSX.
2013-07-08 17:04:25 +01:00
jules
2329e63f20
Converted a few Colour references to pass-by-values.
2013-07-01 17:38:47 +01:00
jules
1a49c7fc5b
TextLayout whitespace fix.
2013-06-29 12:03:29 +01:00
jules
146155bd34
Software text layout fix.
2013-06-29 11:02:34 +01:00
jules
b0e1cbd0ee
Fix for single-character TextLayout width.
2013-06-19 19:55:17 +01:00
jules
03c2801f3f
Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3
2013-06-13 13:17:12 +01:00