summaryrefslogtreecommitdiff
path: root/src/ui/text.h
AgeCommit message (Collapse)Author
2021-04-13Text: Added a semibold Fira Sans fontJaakko Keränen
2021-04-07Text: Promoted codepoint type detection to the_FoundationJaakko Keränen
2021-03-28Added Noto Sans ArabicJaakko Keränen
Added a font for Arabic, making the glyphs available for rendering. Of course, this doesn't solve Arabic text rendering yet. There is still the RTL direction to work out and possibly some missing glyph combining rules. IssueID #195
2021-03-26Added Noto Sans SC; font table cleanupJaakko Keränen
Added the Noto Sans Simplified Chinese font. This adds another ~10 MB to resources.lgr, increasing the urgency of distributing fonts via separate downloads. The font table was getting difficult to manage, so now the sizes are broken out into a separate enum, and the table is reordered to match the FontSize order.
2021-03-17TextBuf: Support for colorJaakko Keränen
Fill glyph backgrounds individually based on current color.
2021-03-13Text: Separate glyph caching procedureJaakko Keränen
Previously glyph caching was done during text rendering, but that would mean lots of swapping between rendering stuff to the cache and then immediately afterward rendering to the display. There would be a swap per each new glyph. Now the entire document's glyphs are precached at once when a request is finished. Glyphs are also cached in larger batches when new text needs to be drawn.
2021-03-13Text: Removed pending glyphs trackerJaakko Keränen
2021-03-11Text: Additional custom link iconsJaakko Keränen
2021-03-10GmDocument: Links use a bold, tinted fontJaakko Keränen
Links are important enough to stand out clearly. A bold font can be tinted with the primary theme color without losing readability.
2021-03-09GmDocument: Light mode Gray document themeJaakko Keränen
The Gray theme now has a light and dark variant.
2021-03-08Improved custom link icons; link list spacingJaakko Keränen
Link lists and bullet lists are spaced the same way.
2021-03-08Local Gemini links can use Emoji/symbol from label textJaakko Keränen
Instead of the default link icon, if a label starts with an Emoji or symbol, use that as the icon. This only works with local Gemini links so important information about link destination is not hidden.
2021-03-06Rasterize a few glyphs on every frameJaakko Keränen
Also various widget fixes/improvements.
2021-03-06Mobile: Dealing with keyboard heightJaakko Keränen
The software keyboard obstructs part of the UI, so need to offset the view if the focused input widget would not be visible.
2021-02-24Source Sans Pro and Iosevka as font optionsJaakko Keränen
Allow the UI and monospace fonts to be used as page content fonts.
2021-02-24UI font consistencyJaakko Keränen
Try to minimize the number of fonts in the UI. Input fields now use the same UI font as everything else. The monospace font was originally used because the widget required one, but that is no longer the case.
2021-02-23Added a Large Bold UI fontJaakko Keränen
2021-02-22iOS: Font adjustmentsJaakko Keränen
2021-02-21Text: Added a 1.33x sized UI fontJaakko Keränen
2020-12-29Added a bold UI fontJaakko Keränen
The bold UI label font is used for highlighted sidebar items and default buttons.
2020-12-18Text: Improved handling of tab stopsJaakko Keränen
Text drawing can now be made aware of the available horizontal space.
2020-12-12New monospace font; flexible mono spacingJaakko Keränen
Iosevka replaces Fira Mono as the monospace font. Emojis are now allowed to be wider than normal monospace glyphs. However, if whitespace permits, the original monospacing is restored. IssueID #73
2020-12-12InputWidget: Allow variable-width fontsJaakko Keränen
2020-12-08Text: Ignore Unicode joiners and modifiersJaakko Keränen
The fonts bundled with Lagrange currently do not have all the latest Unicode symbols, so we'll ignore the joiners and modifiers for gender and skin color. A better option would be to fall back to system-provided text rendering, if that is available. IssueID #81
2020-11-20Replaced EB Garamond with TinosJaakko Keränen
Tinos is a much more readable serif font, especially when it comes to the italic variant.
2020-11-15Added a preference for monospace body textJaakko Keränen
Monospace body font can be set separately for Gemini and Gopher.
2020-11-14macOS: Font tweak for ⌘ and ⇧ charactersJaakko Keränen
2020-10-29Added a large UI fontJaakko Keränen
2020-10-22Added "Nanum Gothic" as a Korean fontJaakko Keränen
This overrides Kosugi Maru as it looks a bit nicer, in case there are glyphs available in both.
2020-10-14Player: Volume adjustment UIJaakko Keränen
2020-10-11Text: Font tuningJaakko Keränen
2020-10-11Added a preference for heading fontJaakko Keränen
Body and heading fonts can be selected separately.
2020-10-11Added two serif fonts; minor color tweaksJaakko Keränen
Added the EB Garamond and Literata fonts as serif font choices.
2020-09-25Document side elements; hover outlineJaakko Keränen
2020-09-22Drawing with alpha blendingJaakko Keränen
2020-09-21Text: Using Unicode symbols in monospaceJaakko Keränen
If the regular monospace font is missing a Unicode character, one is used from Symbola. However, these replacements were taken from the wrong sized font. Also, since the replacements are not monospace (Symbola isn't) they are now centered in their location for a better alignment.
2020-09-20Text: Japanese font sized for UI textJaakko Keränen
This font is needed for example for tab titles where there are japanese glyphs.
2020-09-20Text: Slightly smaller first paragraph font sizeJaakko Keränen
Added a new 1.2x font size and use it for first paragraphs.
2020-09-13Added Kosugi Maru for Japanese textJaakko Keränen
Kosugi Maru is from Google Fonts and licensed used Apache License 2.0.
2020-08-23Build option to disable kerning; other optimizationsJaakko Keränen
2020-08-22Added BSD 2-clause license and copyright noticesJaakko Keränen
2020-08-21Experimenting with text artJaakko Keränen
Convert glyph bitmaps to Unicode block characters
2020-08-18Added a larger content-friendly UI fontJaakko Keränen
Mostly for sidebar contents.
2020-08-15Text: Emoji selector ignoredJaakko Keränen
2020-08-14Text: Added a large UI fontJaakko Keränen
2020-08-11Document outline; jumping to clicked headingJaakko Keränen
2020-08-05Setting up document themingJaakko Keränen
2020-08-04Added a large light font for the site bannerJaakko Keränen
2020-08-04Changing the document content text sizeJaakko Keränen
The glyph cache is purged whenever font sizes change. UI fonts are deliberately not changed in size so that UI metrics don't have to be recomputed.
2020-08-02Flag for tight label padding; aligning labels visuallyJaakko Keränen