github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/mediatypes/media-types-font.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package mediatypes
     4  
     5  import (
     6  	"../mediatype"
     7  	"../protocol"
     8  )
     9  
    10  var (
    11  	WOFF  mediatype.MediaType
    12  	WOFF2 mediatype.MediaType
    13  
    14  	TTF mediatype.MediaType
    15  )
    16  
    17  func init() {
    18  	WOFF.Init("font/woff")
    19  	WOFF.SetFileExtension("woff")
    20  	WOFF.SetDetail(protocol.LanguageEnglish, "Web Open Font Format", "", "", "", "", []string{})
    21  
    22  	WOFF2.Init("font/woff2")
    23  	WOFF2.SetFileExtension("woff2")
    24  	WOFF2.SetDetail(protocol.LanguageEnglish, "Web Open Font Format version 2", "", "", "", "", []string{})
    25  
    26  	TTF.Init("font/ttf")
    27  	TTF.SetFileExtension("ttf")
    28  	TTF.SetDetail(protocol.LanguageEnglish, "TrueType Font", "", "", "", "", []string{})
    29  }