Age | Commit message (Collapse) | Author |
|
|
|
FG color and font style escapes can be enabled separately. FG color remains enabled by default like before.
|
|
Don't try to show a document while a long download is progressing, especially if we don't have any way to present the document format.
|
|
When GlyphBuffers were freed, the array holding them wasn't.
|
|
|
|
Saving this as the last point of progress. This direction is too complicated: Media needs to be a lot more sophisticated to allow dynamic and interactive media at the level of FontPacks. (A bit like Player handles audio playback.)
This will be reverted. FontPack management will happen using an another method.
|
|
When the last safe break position was not in the current attributed run, the calculated wrap advance came out incorrect. This was possible when the first glyph in an attributed run didn't fit.
|
|
Cleaned up serialization of the bool preferences a little.
|
|
It can be argued that using ANSI escapes to style text goes against the intended use of Gemtext. Therefore, all ANSI escapes are now disabled by default in Gemtext.
|
|
|
|
|
|
These changes concern the situation when the attributes of text (i.e., font, color) are changed via escape sequences.
The concept of "base attributes" was added so that the low-level text renderer knows which font/color to set when a "reset" escape sequence is encountered. This depends on what kind of text is being renderer, e.g., preformatted or regular paragraphs.
The base attributes were added as variables in Text because it was getting unwieldy to pass all the information via the draw/measure/WrapText functions.
GmDocument now has a GmTheme struct that collects the font and color information into a single place.
|
|
|
|
Convert Markdown to Gemtext and use ANSI escape sequences to switch fonts (bold, italic, monospace). The conversion is still a bit buggy...
|
|
IssueID #358
|
|
# Conflicts:
# CMakeLists.txt
# res/lang/es.bin
# res/lang/fr.bin
# res/lang/gl.bin
# res/lang/ie.bin
# res/lang/ru.bin
# res/lang/sk.bin
# res/lang/sr.bin
# res/lang/tok.bin
# src/ui/documentwidget.c
|
|
The HarfBuzz and wrapped text changes introduced subtle differences in how text selection works. Fixed a bunch of issues regarding how the individual character selection mode works in edge cases.
IssueID #357
|
|
Media still needs more work to get rid of redundancies and make lookups faster.
FontPacks are manipulated as Media items (not unlike images) so they can be previewed on page, and installed via a click.
FontPack management is not trivial as it includes such details as versioning and whether individual packs are enabled or disabled.
|
|
|
|
Now all the available fonts are selectable in the dialog. Added preformatted and UI font settings and shuffled the order a bit to make more sense.
|
|
TODO: Check if this is only applicable to HiDPI.
|
|
The light theme folder backgrounds were a tad dark.
|
|
Added a second version of Iosevka with more line spacing, to be used as the default monospace document font.
|
|
|
|
The idea is that the amount of content should be the same per line regardless of the font.
|
|
Check auxiliary fonts first, and then all primary fonts that haven't been checked yet.
|
|
Scaling of monospace and symbols; cache reset.
|
|
The heading items will be obsolete if clicking in the sidebar before a page load finishes.
IssueID #350
|
|
The built-in fonts are loaded via FontPack, and the font table is now constructed dynamically based on available fonts.
A full set of variants (style, size) are prepared for each font, but some of the data gets allocated lazily when needed.
GmRun needed a larger allocation for fonts, so now all the fields are combined into a single bit field.
TODO: Glyph scaling, vertical offsets, and symbol lookup are still not fully working.
|
|
The heading items will be obsolete if clicking in the sidebar before a page load finishes.
IssueID #350
|
|
|
|
"From"/"To" fields were not being hidden when translation request was submitted.
|
|
|
|
The 80% size is used in the toolbar.
|
|
Show some status info about the progress of feed refresh. The search query and feeds indicators now use the small UI font size.
|
|
|
|
Three important changes:
1) Visited URLs can be marked as "kept" so they will never be discarded due to old age.
2) Feed entries are not discarded from the database until they are removed from the source, and then become too old (six months).
3) Visited feed entry URLs are always flagged as kept, so the (un)read status will not be forgotten.
|
|
|
|
New bookmarks and folders shouldn't appear outside the visible part of the list.
|
|
It's useful to make a distinction whether a drag ended before or after an item, even if it's still referring to the same boundary between items.
This allows bookmarks to be reordered inside a folder so that an item is moved to the bottom of a folder, or out of the folder following it in order.
|
|
|
|
|
|
|
|
|
|
Use the regular bookmark editor but hide the Special Tags section,
and disable all but the Title for now.
|
|
|
|
|
|
|
|
Window placement was not restored correctly when the window was maximized. Maximizing a window (on Windows) causes a spurious move event to be received from SDL, and that would mess up the remembered position. Now window placemenet is saved after a run through the event loop, so the rest of the window messages have been handled.
|
|
This is quite a hack, but Win32 apps don't seem to have documented
access to dark mode.
|