aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/web/css/font.lux
blob: f69a8f6025e8c7f20a116b512635169c55db788a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(.require
 [library
  [lux (.except #source)
   [meta
    [code
     ["s" \\parser]]]
   [world
    [net (.only URL)]]]]
 ["[0]" //
  ["[1][0]" value (.only Value Font_Stretch Font_Style Font_Weight)]])

(type .public Unicode_Range
  (Record
   [#start Nat
    #end Nat]))

(type .public Font
  (Record
   [#family Text
    #source URL
    #stretch (Maybe (Value Font_Stretch))
    #style (Maybe (Value Font_Style))
    #weight (Maybe (Value Font_Weight))
    #unicode_range (Maybe Unicode_Range)]))