summaryrefslogtreecommitdiff
path: root/src/ui/text.c
AgeCommit message (Collapse)Author
2020-11-05Full 8-bit ANSI palette for foreground colorsJaakko Keränen
2020-11-05CleanupJaakko Keränen
2020-11-04CleanupJaakko Keränen
Consistent code style.
2020-11-04ui: Fix line wrapping of emoticonsAlyssa Rosenzweig
While we do want to have special handling of punctuation to help wrap pathologically-long-hyphenated-words-that-go-on-for-kilometers, we don't want to wrap emoticons, so let's adjust the logic to account for this. While we're at it, clean up and add a comment explaining the logic for the benefit of future readers. Fixes rendering of a recent post on CAPCOM at certain window sizes => gemini://rosenzweig.io/lagrange/Before.png Before the change => gemini://rosenzweig.io/lagrange/After.png After the change Notice the wrapping of the ":D" in the second paragraph. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
2020-10-29Added a large UI fontJaakko Keränen
2020-10-29TextBuf: Fixed garbage in the backgroundJaakko Keränen
2020-10-28Fixed: Blend TextBuf only once when drawingJaakko Keränen
2020-10-22CleanupJaakko 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-12Normalizing long spaces to a tab stopJaakko Keränen
Experimenting with terminal friendly space normalization where sometimes multiple spaces are used to align content horizontally (with a fixed-width font). When encountering 8 or more consecutive spaces, they are all replaced with a single tab character. Gemtext allows clients to normalize whitespace as they see fit.
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-29CleanupJaakko Keränen
2020-09-29Text: Better readability with Fira SansJaakko Keränen
Increased Fira Sans line spacing, now more in line with Nunito.
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-09-12Text: Slightly fewer render target switchesJaakko Keränen
2020-09-05Text: Fixed the minor optimizationJaakko Keränen
2020-09-05Text: Minor optimizationJaakko Keränen
No need to check for word boundaries if wrapping is not being checked for.
2020-09-04Text: Heavier bold fontJaakko Keränen
2020-09-03Text: FixesJaakko Keränen
2020-09-03Text: Keep a cache of common glyph indicesJaakko Keränen
2020-09-03Text: 16-bit glyph cache; check maximum texture sizeJaakko Keränen
2020-09-03Changed default font to NunitoJaakko Keränen
Nunito is licensed under OFL.
2020-09-02Text: Workaround for Raspberry Pi issueJaakko Keränen
2020-09-01Text: Fixed color escape ASCII overflowJaakko Keränen
2020-08-24Initialize RegExpMatchesJaakko Keränen
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-18Adjusted UI content text sizeJaakko Keränen
2020-08-18Added a larger content-friendly UI fontJaakko Keränen
Mostly for sidebar contents.
2020-08-18Render target switchingJaakko Keränen
2020-08-16Added Pure Black and Pure White themesJaakko Keränen
Font changes cause window redrawing to pause so document layout doesn’t get an intermediate update with a different width. Sheets are mouse-modal.
2020-08-15Text: Emoji selector ignoredJaakko Keränen
2020-08-14Text: Added a large UI fontJaakko Keränen
2020-08-09Text: Enforce spacing on monospaced fontsJaakko 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-04Remember scroll positions on visited pagesJaakko Keränen
2020-08-02Flag for tight label padding; aligning labels visuallyJaakko Keränen
2020-07-31Text: Removing the baseline offset hackJaakko Keränen
2020-07-31Use the full Symbola font; don't embed resourcesJaakko Keränen
The fonts are too large to embed comfortably.
2020-07-30More readable italic fontJaakko Keränen
Thin fonts are nice but not very legible.