This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Facet.Scenegraph.Font

type alias Font = { font : String , fontSize : Float , fontWeight : FontWeight , fontStyle : FontStyle }

Font styling

type FontWeight = WeightNormal | WeightBold
type FontStyle = StyleNormal | StyleItalic
default : Font
module Facet.Scenegraph.Font exposing (Font, default, FontStyle(..), FontWeight(..))

{-|
@docs Font,  FontWeight, FontStyle
@docs default

-}


{-| Font styling
-}
type alias Font =
    { font : String
    , fontSize : Float
    , fontWeight : FontWeight
    , fontStyle : FontStyle
    }


{-| -}
type FontWeight
    = WeightNormal
    | WeightBold


{-| -}
type FontStyle
    = StyleNormal
    | StyleItalic


{-| -}
default : Font
default =
    Font "Helvetica" 12 WeightNormal StyleNormal