From 61c55a6c6bd4db96deda0f4ba6beb75410077e3c Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sat, 28 Jan 2023 17:56:45 +1300 Subject: [PATCH] Claim credit. --- src/Typograffiti.hs | 7 ++++--- src/Typograffiti/Atlas.hs | 3 ++- src/Typograffiti/Cache.hs | 3 ++- src/Typograffiti/Rich.hs | 9 +++++++++ src/Typograffiti/Store.hs | 3 ++- src/Typograffiti/Text.hs | 1 + 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/Typograffiti.hs b/src/Typograffiti.hs index 2cf48f3..ecd6615 100644 --- a/src/Typograffiti.hs +++ b/src/Typograffiti.hs @@ -1,11 +1,12 @@ -- | -- Module: Typograffiti --- Copyright: (c) 2018 Schell Scivally +-- Copyright: (c) 2018 Schell Scivally, 2023 Adrian Cochrane -- License: MIT -- Maintainer: Schell Scivally +-- & Adrian Cochrane -- --- This module provides easy freetype2-based font rendering with a nice --- Haskell interface. +-- This module provides easy freetype2 & Harfbuzz based font rendering with a +-- nice Haskell interface, whilst exposing low-level APIs for those who need it. module Typograffiti( TypograffitiError(..), allocAtlas, freeAtlas, stringTris, Atlas(..), GlyphMetrics(..), diff --git a/src/Typograffiti/Atlas.hs b/src/Typograffiti/Atlas.hs index b87fe7b..86bdac7 100644 --- a/src/Typograffiti/Atlas.hs +++ b/src/Typograffiti/Atlas.hs @@ -2,9 +2,10 @@ {-# LANGUAGE RecordWildCards #-} -- | -- Module: Typograffiti.Atlas --- Copyright: (c) 2018 Schell Scivally +-- Copyright: (c) 2018 Schell Scivally, 2023 Adrian Cochrane -- License: MIT -- Maintainer: Schell Scivally +-- & Adrian Cochrane -- -- This module provides a font-character atlas to use in font rendering with -- opengl. diff --git a/src/Typograffiti/Cache.hs b/src/Typograffiti/Cache.hs index 1708a87..5508a23 100644 --- a/src/Typograffiti/Cache.hs +++ b/src/Typograffiti/Cache.hs @@ -2,9 +2,10 @@ {-# LANGUAGE FlexibleInstances #-} -- | -- Module: Typograffiti.Cache --- Copyright: (c) 2018 Schell Scivally +-- Copyright: (c) 2018 Schell Scivally, 2023 Adrian Cochrane -- License: MIT -- Maintainer: Schell Scivally +-- & Adrian Cochrane -- -- This module provides a method of caching rendererd text, making it suitable -- for interactive rendering. You can use the defaultCache or provide your own. diff --git a/src/Typograffiti/Rich.hs b/src/Typograffiti/Rich.hs index 9199794..b60993f 100644 --- a/src/Typograffiti/Rich.hs +++ b/src/Typograffiti/Rich.hs @@ -1,3 +1,12 @@ +-- | +-- Module: Typograffiti.Rich +-- Copyright: (c) 2023 Adrian Cochrane +-- License: MIT +-- Maintainer: Schell Scivally +-- & Adrian Cochrane +-- +-- Abstraction for building richtext strings to be rendered via Typograffiti. +-- module Typograffiti.Rich where import Data.Text.Lazy (Text, append, pack) import qualified Data.Text.Lazy as Txt diff --git a/src/Typograffiti/Store.hs b/src/Typograffiti/Store.hs index 436b8ce..597b8e9 100644 --- a/src/Typograffiti/Store.hs +++ b/src/Typograffiti/Store.hs @@ -7,9 +7,10 @@ {-# LANGUAGE StandaloneDeriving #-} -- | -- Module: Typograffiti.Monad --- Copyright: (c) 2018 Schell Scivally +-- Copyright: (c) 2018 Schell Scivally, 2023 Adrian Cochrane -- License: MIT -- Maintainer: Schell Scivally +-- & Adrian Cochrane -- -- A storage context an ops for rendering text with multiple fonts -- and sizes, hiding the details of the Atlas, Cache, and the Harfbuzz library. diff --git a/src/Typograffiti/Text.hs b/src/Typograffiti/Text.hs index e9f05d8..fd2ce5e 100644 --- a/src/Typograffiti/Text.hs +++ b/src/Typograffiti/Text.hs @@ -6,6 +6,7 @@ -- Copyright: (c) 2018 Schell Scivally -- License: MIT -- Maintainer: Schell Scivally +-- & Adrian Cochrane -- -- Text rendering abstraction, hiding the details of -- the Atlas, Cache, and the Harfbuzz library. -- 2.30.2