Documentation
¶
Index ¶
- Variables
- func GenerateFamilyCSSFile(family FontFamily, subsets []string, outputDir string) error
- func GenerateFamilyJSONFile(family FontFamily, subsets []string, outputDir string) error
- func GenerateIndexJSONFile(families []FontFamily, subsets []string, outputDir string) error
- func GenerateWOFF2Files(family FontFamily, subsets []string, fontInputDir string, fontOutputDir string, ...) error
- type AxisSegmentProto
- func (*AxisSegmentProto) Descriptor() ([]byte, []int)deprecated
- func (x *AxisSegmentProto) GetMaxValue() float32
- func (x *AxisSegmentProto) GetMinValue() float32
- func (x *AxisSegmentProto) GetTag() string
- func (*AxisSegmentProto) ProtoMessage()
- func (x *AxisSegmentProto) ProtoReflect() protoreflect.Message
- func (x *AxisSegmentProto) Reset()
- func (x *AxisSegmentProto) String() string
- type FamilyFallbackProto
- func (*FamilyFallbackProto) Descriptor() ([]byte, []int)deprecated
- func (x *FamilyFallbackProto) GetAscentOverridePct() float32
- func (x *FamilyFallbackProto) GetAxisTarget() []*AxisSegmentProto
- func (x *FamilyFallbackProto) GetLocalSrc() []string
- func (x *FamilyFallbackProto) GetSizeAdjustPct() float32
- func (x *FamilyFallbackProto) GetTarget() []*TargetProto
- func (*FamilyFallbackProto) ProtoMessage()
- func (x *FamilyFallbackProto) ProtoReflect() protoreflect.Message
- func (x *FamilyFallbackProto) Reset()
- func (x *FamilyFallbackProto) String() string
- type FamilyProto
- func (*FamilyProto) Descriptor() ([]byte, []int)deprecated
- func (x *FamilyProto) GetAliases() []string
- func (x *FamilyProto) GetAxes() []*AxisSegmentProto
- func (x *FamilyProto) GetCategory() []string
- func (x *FamilyProto) GetClassifications() []string
- func (x *FamilyProto) GetDateAdded() string
- func (x *FamilyProto) GetDesigner() string
- func (x *FamilyProto) GetDisplayName() string
- func (x *FamilyProto) GetFallbacks() []*FamilyFallbackProto
- func (x *FamilyProto) GetFonts() []*FontProto
- func (x *FamilyProto) GetIsNoto() bool
- func (x *FamilyProto) GetLanguages() []string
- func (x *FamilyProto) GetLicense() string
- func (x *FamilyProto) GetMinisiteUrl() string
- func (x *FamilyProto) GetName() string
- func (x *FamilyProto) GetOrderedSampleGlyphs() []*GlyphGroupProto
- func (x *FamilyProto) GetPrimaryLanguage() string
- func (x *FamilyProto) GetPrimaryScript() string
- func (x *FamilyProto) GetRegistryDefaultOverrides() map[string]float32
- func (x *FamilyProto) GetSampleGlyphs() map[string]string
- func (x *FamilyProto) GetSampleText() *SampleTextProto
- func (x *FamilyProto) GetSource() *SourceProto
- func (x *FamilyProto) GetStroke() string
- func (x *FamilyProto) GetSubsets() []string
- func (x *FamilyProto) GetTtfAutohintArgs() string
- func (*FamilyProto) ProtoMessage()
- func (x *FamilyProto) ProtoReflect() protoreflect.Message
- func (x *FamilyProto) Reset()
- func (x *FamilyProto) String() string
- type FontFamily
- type FontFamilyAxis
- type FontFamilyFont
- type FontProto
- func (*FontProto) Descriptor() ([]byte, []int)deprecated
- func (x *FontProto) GetCopyright() string
- func (x *FontProto) GetFilename() string
- func (x *FontProto) GetFullName() string
- func (x *FontProto) GetName() string
- func (x *FontProto) GetPosition() *Position
- func (x *FontProto) GetPostScriptName() string
- func (x *FontProto) GetStyle() string
- func (x *FontProto) GetWeight() int32
- func (*FontProto) ProtoMessage()
- func (x *FontProto) ProtoReflect() protoreflect.Message
- func (x *FontProto) Reset()
- func (x *FontProto) String() string
- type GlyphGroupProto
- func (*GlyphGroupProto) Descriptor() ([]byte, []int)deprecated
- func (x *GlyphGroupProto) GetGlyphs() string
- func (x *GlyphGroupProto) GetName() string
- func (*GlyphGroupProto) ProtoMessage()
- func (x *GlyphGroupProto) ProtoReflect() protoreflect.Message
- func (x *GlyphGroupProto) Reset()
- func (x *GlyphGroupProto) String() string
- type Position
- type SampleTextProto
- func (*SampleTextProto) Descriptor() ([]byte, []int)deprecated
- func (x *SampleTextProto) GetMastheadFull() string
- func (x *SampleTextProto) GetMastheadPartial() string
- func (x *SampleTextProto) GetNote() string
- func (x *SampleTextProto) GetPosterLg() string
- func (x *SampleTextProto) GetPosterMd() string
- func (x *SampleTextProto) GetPosterSm() string
- func (x *SampleTextProto) GetSpecimen_16() string
- func (x *SampleTextProto) GetSpecimen_21() string
- func (x *SampleTextProto) GetSpecimen_32() string
- func (x *SampleTextProto) GetSpecimen_36() string
- func (x *SampleTextProto) GetSpecimen_48() string
- func (x *SampleTextProto) GetStyles() string
- func (x *SampleTextProto) GetTester() string
- func (*SampleTextProto) ProtoMessage()
- func (x *SampleTextProto) ProtoReflect() protoreflect.Message
- func (x *SampleTextProto) Reset()
- func (x *SampleTextProto) String() string
- type SourceFileProto
- func (*SourceFileProto) Descriptor() ([]byte, []int)deprecated
- func (x *SourceFileProto) GetDestFile() string
- func (x *SourceFileProto) GetSourceFile() string
- func (*SourceFileProto) ProtoMessage()
- func (x *SourceFileProto) ProtoReflect() protoreflect.Message
- func (x *SourceFileProto) Reset()
- func (x *SourceFileProto) String() string
- type SourceProto
- func (*SourceProto) Descriptor() ([]byte, []int)deprecated
- func (x *SourceProto) GetArchiveUrl() string
- func (x *SourceProto) GetBranch() string
- func (x *SourceProto) GetCommit() string
- func (x *SourceProto) GetFiles() []*SourceFileProto
- func (x *SourceProto) GetRepositoryUrl() string
- func (*SourceProto) ProtoMessage()
- func (x *SourceProto) ProtoReflect() protoreflect.Message
- func (x *SourceProto) Reset()
- func (x *SourceProto) String() string
- type TargetProto
- type TargetTypeProto
- func (TargetTypeProto) Descriptor() protoreflect.EnumDescriptor
- func (x TargetTypeProto) Enum() *TargetTypeProto
- func (TargetTypeProto) EnumDescriptor() ([]byte, []int)deprecated
- func (x TargetTypeProto) Number() protoreflect.EnumNumber
- func (x TargetTypeProto) String() string
- func (TargetTypeProto) Type() protoreflect.EnumType
- func (x *TargetTypeProto) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
var ( TargetTypeProto_name = map[int32]string{ 0: "TARGET_UNSPECIFIED", 1: "TARGET_OS_WINDOWS", 2: "TARGET_OS_MAC", 3: "TARGET_OS_LINUX", 4: "TARGET_OS_ANDROID", 5: "TARGET_OS_IOS", } TargetTypeProto_value = map[string]int32{ "TARGET_UNSPECIFIED": 0, "TARGET_OS_WINDOWS": 1, "TARGET_OS_MAC": 2, "TARGET_OS_LINUX": 3, "TARGET_OS_ANDROID": 4, "TARGET_OS_IOS": 5, } )
Enum value maps for TargetTypeProto.
var File_fonts_public_proto protoreflect.FileDescriptor
Functions ¶
func GenerateFamilyCSSFile ¶
func GenerateFamilyCSSFile(family FontFamily, subsets []string, outputDir string) error
func GenerateFamilyJSONFile ¶
func GenerateFamilyJSONFile(family FontFamily, subsets []string, outputDir string) error
Write the individual JSON file for the family. E.g. api/v1/fonts/archivo-narrow.json
func GenerateIndexJSONFile ¶
func GenerateIndexJSONFile(families []FontFamily, subsets []string, outputDir string) error
Write the index JSON file containing names and ids for all families. I.e. api/v1/fonts.json
func GenerateWOFF2Files ¶
Types ¶
type AxisSegmentProto ¶
type AxisSegmentProto struct { Tag *string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` MinValue *float32 `protobuf:"fixed32,2,opt,name=min_value,json=minValue" json:"min_value,omitempty"` MaxValue *float32 `protobuf:"fixed32,4,opt,name=max_value,json=maxValue" json:"max_value,omitempty"` // Next = 5 // contains filtered or unexported fields }
func (*AxisSegmentProto) Descriptor
deprecated
func (*AxisSegmentProto) Descriptor() ([]byte, []int)
Deprecated: Use AxisSegmentProto.ProtoReflect.Descriptor instead.
func (*AxisSegmentProto) GetMaxValue ¶
func (x *AxisSegmentProto) GetMaxValue() float32
func (*AxisSegmentProto) GetMinValue ¶
func (x *AxisSegmentProto) GetMinValue() float32
func (*AxisSegmentProto) GetTag ¶
func (x *AxisSegmentProto) GetTag() string
func (*AxisSegmentProto) ProtoMessage ¶
func (*AxisSegmentProto) ProtoMessage()
func (*AxisSegmentProto) ProtoReflect ¶
func (x *AxisSegmentProto) ProtoReflect() protoreflect.Message
func (*AxisSegmentProto) Reset ¶
func (x *AxisSegmentProto) Reset()
func (*AxisSegmentProto) String ¶
func (x *AxisSegmentProto) String() string
type FamilyFallbackProto ¶
type FamilyFallbackProto struct { AxisTarget []*AxisSegmentProto `protobuf:"bytes,1,rep,name=axis_target,json=axisTarget" json:"axis_target,omitempty"` // activate for this region Target []*TargetProto `protobuf:"bytes,2,rep,name=target" json:"target,omitempty"` // activate for any of these SizeAdjustPct *float32 `protobuf:"fixed32,3,opt,name=size_adjust_pct,json=sizeAdjustPct" json:"size_adjust_pct,omitempty"` // e.g. 90% AscentOverridePct *float32 `protobuf:"fixed32,5,opt,name=ascent_override_pct,json=ascentOverridePct" json:"ascent_override_pct,omitempty"` // e.g. 110% LocalSrc []string `protobuf:"bytes,4,rep,name=local_src,json=localSrc" json:"local_src,omitempty"` // e.g. Impact; the local family to use // contains filtered or unexported fields }
func (*FamilyFallbackProto) Descriptor
deprecated
func (*FamilyFallbackProto) Descriptor() ([]byte, []int)
Deprecated: Use FamilyFallbackProto.ProtoReflect.Descriptor instead.
func (*FamilyFallbackProto) GetAscentOverridePct ¶
func (x *FamilyFallbackProto) GetAscentOverridePct() float32
func (*FamilyFallbackProto) GetAxisTarget ¶
func (x *FamilyFallbackProto) GetAxisTarget() []*AxisSegmentProto
func (*FamilyFallbackProto) GetLocalSrc ¶
func (x *FamilyFallbackProto) GetLocalSrc() []string
func (*FamilyFallbackProto) GetSizeAdjustPct ¶
func (x *FamilyFallbackProto) GetSizeAdjustPct() float32
func (*FamilyFallbackProto) GetTarget ¶
func (x *FamilyFallbackProto) GetTarget() []*TargetProto
func (*FamilyFallbackProto) ProtoMessage ¶
func (*FamilyFallbackProto) ProtoMessage()
func (*FamilyFallbackProto) ProtoReflect ¶
func (x *FamilyFallbackProto) ProtoReflect() protoreflect.Message
func (*FamilyFallbackProto) Reset ¶
func (x *FamilyFallbackProto) Reset()
func (*FamilyFallbackProto) String ¶
func (x *FamilyFallbackProto) String() string
type FamilyProto ¶
type FamilyProto struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Designer *string `protobuf:"bytes,2,req,name=designer" json:"designer,omitempty"` License *string `protobuf:"bytes,3,req,name=license" json:"license,omitempty"` // A mutually-exclusive category for each font. The categories are: Serif, // Sans Serif, Display, Handwriting and Monospace. Being mutually exclusive is // a significant deficiency as, for example, most Display fonts are typically // Serif or Sans Serif and that is not captured. // // For searching, this field is replaced by stroke and classifications (see // below), however, this field persists (it's required after all) and will // continue to be populated in the onboarding process. // // This is repeated field, yet Google Fonts only uses the last entry so // multiple entries should be avoided. Category []string `protobuf:"bytes,4,rep,name=category" json:"category,omitempty"` // Only the LAST value is used by Google Fonts DateAdded *string `protobuf:"bytes,5,req,name=date_added,json=dateAdded" json:"date_added,omitempty"` Fonts []*FontProto `protobuf:"bytes,6,rep,name=fonts" json:"fonts,omitempty"` Aliases []string `protobuf:"bytes,7,rep,name=aliases" json:"aliases,omitempty"` Subsets []string `protobuf:"bytes,8,rep,name=subsets" json:"subsets,omitempty"` TtfAutohintArgs *string `protobuf:"bytes,9,opt,name=ttf_autohint_args,json=ttfAutohintArgs" json:"ttf_autohint_args,omitempty"` Axes []*AxisSegmentProto `protobuf:"bytes,10,rep,name=axes" json:"axes,omitempty"` RegistryDefaultOverrides map[string]float32 `` /* 205-byte string literal not displayed */ Source *SourceProto `protobuf:"bytes,12,opt,name=source" json:"source,omitempty"` IsNoto *bool `protobuf:"varint,13,opt,name=is_noto,json=isNoto" json:"is_noto,omitempty"` Languages []string `protobuf:"bytes,14,rep,name=languages" json:"languages,omitempty"` Fallbacks []*FamilyFallbackProto `protobuf:"bytes,15,rep,name=fallbacks" json:"fallbacks,omitempty"` SampleGlyphs map[string]string `` /* 165-byte string literal not displayed */ SampleText *SampleTextProto `protobuf:"bytes,17,opt,name=sample_text,json=sampleText" json:"sample_text,omitempty"` DisplayName *string `protobuf:"bytes,18,opt,name=display_name,json=displayName" json:"display_name,omitempty"` OrderedSampleGlyphs []*GlyphGroupProto `protobuf:"bytes,19,rep,name=ordered_sample_glyphs,json=orderedSampleGlyphs" json:"ordered_sample_glyphs,omitempty"` // Optional url for more info about the font. MinisiteUrl *string `protobuf:"bytes,20,opt,name=minisite_url,json=minisiteUrl" json:"minisite_url,omitempty"` // The script to use when picking sample text. See the Script spanner table. PrimaryScript *string `protobuf:"bytes,21,opt,name=primary_script,json=primaryScript" json:"primary_script,omitempty"` PrimaryLanguage *string `protobuf:"bytes,22,opt,name=primary_language,json=primaryLanguage" json:"primary_language,omitempty"` // Stroke of the letter forms: serif, sans serif, etc. Stroke is mutually // exclusive. The values are the string names from the Stroke enum or the // empty string. Stroke *string `protobuf:"bytes,23,opt,name=stroke" json:"stroke,omitempty"` // A family's broad classifications: display, handwriting, monospace, etc. // The values are the string names from the Classification enum. Classifications []string `protobuf:"bytes,25,rep,name=classifications" json:"classifications,omitempty"` // Next = 25 // contains filtered or unexported fields }
func (*FamilyProto) Descriptor
deprecated
func (*FamilyProto) Descriptor() ([]byte, []int)
Deprecated: Use FamilyProto.ProtoReflect.Descriptor instead.
func (*FamilyProto) GetAliases ¶
func (x *FamilyProto) GetAliases() []string
func (*FamilyProto) GetAxes ¶
func (x *FamilyProto) GetAxes() []*AxisSegmentProto
func (*FamilyProto) GetCategory ¶
func (x *FamilyProto) GetCategory() []string
func (*FamilyProto) GetClassifications ¶
func (x *FamilyProto) GetClassifications() []string
func (*FamilyProto) GetDateAdded ¶
func (x *FamilyProto) GetDateAdded() string
func (*FamilyProto) GetDesigner ¶
func (x *FamilyProto) GetDesigner() string
func (*FamilyProto) GetDisplayName ¶
func (x *FamilyProto) GetDisplayName() string
func (*FamilyProto) GetFallbacks ¶
func (x *FamilyProto) GetFallbacks() []*FamilyFallbackProto
func (*FamilyProto) GetFonts ¶
func (x *FamilyProto) GetFonts() []*FontProto
func (*FamilyProto) GetIsNoto ¶
func (x *FamilyProto) GetIsNoto() bool
func (*FamilyProto) GetLanguages ¶
func (x *FamilyProto) GetLanguages() []string
func (*FamilyProto) GetLicense ¶
func (x *FamilyProto) GetLicense() string
func (*FamilyProto) GetMinisiteUrl ¶
func (x *FamilyProto) GetMinisiteUrl() string
func (*FamilyProto) GetName ¶
func (x *FamilyProto) GetName() string
func (*FamilyProto) GetOrderedSampleGlyphs ¶
func (x *FamilyProto) GetOrderedSampleGlyphs() []*GlyphGroupProto
func (*FamilyProto) GetPrimaryLanguage ¶
func (x *FamilyProto) GetPrimaryLanguage() string
func (*FamilyProto) GetPrimaryScript ¶
func (x *FamilyProto) GetPrimaryScript() string
func (*FamilyProto) GetRegistryDefaultOverrides ¶
func (x *FamilyProto) GetRegistryDefaultOverrides() map[string]float32
func (*FamilyProto) GetSampleGlyphs ¶
func (x *FamilyProto) GetSampleGlyphs() map[string]string
func (*FamilyProto) GetSampleText ¶
func (x *FamilyProto) GetSampleText() *SampleTextProto
func (*FamilyProto) GetSource ¶
func (x *FamilyProto) GetSource() *SourceProto
func (*FamilyProto) GetStroke ¶
func (x *FamilyProto) GetStroke() string
func (*FamilyProto) GetSubsets ¶
func (x *FamilyProto) GetSubsets() []string
func (*FamilyProto) GetTtfAutohintArgs ¶
func (x *FamilyProto) GetTtfAutohintArgs() string
func (*FamilyProto) ProtoMessage ¶
func (*FamilyProto) ProtoMessage()
func (*FamilyProto) ProtoReflect ¶
func (x *FamilyProto) ProtoReflect() protoreflect.Message
func (*FamilyProto) Reset ¶
func (x *FamilyProto) Reset()
func (*FamilyProto) String ¶
func (x *FamilyProto) String() string
type FontFamily ¶
type FontFamily struct { Id string `json:"id"` Name string `json:"name"` Designer string `json:"designer"` License string `json:"license"` Category []string `json:"category"` Fonts []FontFamilyFont `json:"fonts"` Subsets []string `json:"subsets"` Axes []FontFamilyAxis `json:"axes"` Minisite string `json:"minisite_url"` }
func CollectMetadata ¶
func CollectMetadata(rootDir string) ([]FontFamily, error)
CollectMetadata walks the given directory and gathers metadata from all METADATA.pb files it finds by walking the directory recursively.
The slice of metadata will be sorted by the name of the font family.
type FontFamilyAxis ¶
type FontFamilyFont ¶
type FontProto ¶
type FontProto struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Style *string `protobuf:"bytes,2,req,name=style" json:"style,omitempty"` Weight *int32 `protobuf:"varint,3,req,name=weight" json:"weight,omitempty"` Filename *string `protobuf:"bytes,4,req,name=filename" json:"filename,omitempty"` PostScriptName *string `protobuf:"bytes,5,req,name=post_script_name,json=postScriptName" json:"post_script_name,omitempty"` FullName *string `protobuf:"bytes,6,req,name=full_name,json=fullName" json:"full_name,omitempty"` Copyright *string `protobuf:"bytes,7,opt,name=copyright" json:"copyright,omitempty"` Position *Position `protobuf:"bytes,8,opt,name=position" json:"position,omitempty"` // contains filtered or unexported fields }
func (*FontProto) Descriptor
deprecated
func (*FontProto) GetCopyright ¶
func (*FontProto) GetFilename ¶
func (*FontProto) GetFullName ¶
func (*FontProto) GetPosition ¶
func (*FontProto) GetPostScriptName ¶
func (*FontProto) ProtoMessage ¶
func (*FontProto) ProtoMessage()
func (*FontProto) ProtoReflect ¶
func (x *FontProto) ProtoReflect() protoreflect.Message
type GlyphGroupProto ¶
type GlyphGroupProto struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Glyphs *string `protobuf:"bytes,2,opt,name=glyphs" json:"glyphs,omitempty"` // contains filtered or unexported fields }
func (*GlyphGroupProto) Descriptor
deprecated
func (*GlyphGroupProto) Descriptor() ([]byte, []int)
Deprecated: Use GlyphGroupProto.ProtoReflect.Descriptor instead.
func (*GlyphGroupProto) GetGlyphs ¶
func (x *GlyphGroupProto) GetGlyphs() string
func (*GlyphGroupProto) GetName ¶
func (x *GlyphGroupProto) GetName() string
func (*GlyphGroupProto) ProtoMessage ¶
func (*GlyphGroupProto) ProtoMessage()
func (*GlyphGroupProto) ProtoReflect ¶
func (x *GlyphGroupProto) ProtoReflect() protoreflect.Message
func (*GlyphGroupProto) Reset ¶
func (x *GlyphGroupProto) Reset()
func (*GlyphGroupProto) String ¶
func (x *GlyphGroupProto) String() string
type Position ¶
type Position struct { Tag *string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` Position *float32 `protobuf:"fixed32,2,opt,name=position" json:"position,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) GetPosition ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type SampleTextProto ¶
type SampleTextProto struct { MastheadFull *string `protobuf:"bytes,1,opt,name=masthead_full,json=mastheadFull" json:"masthead_full,omitempty"` MastheadPartial *string `protobuf:"bytes,2,opt,name=masthead_partial,json=mastheadPartial" json:"masthead_partial,omitempty"` Styles *string `protobuf:"bytes,3,opt,name=styles" json:"styles,omitempty"` Tester *string `protobuf:"bytes,4,opt,name=tester" json:"tester,omitempty"` PosterSm *string `protobuf:"bytes,5,opt,name=poster_sm,json=posterSm" json:"poster_sm,omitempty"` PosterMd *string `protobuf:"bytes,6,opt,name=poster_md,json=posterMd" json:"poster_md,omitempty"` PosterLg *string `protobuf:"bytes,7,opt,name=poster_lg,json=posterLg" json:"poster_lg,omitempty"` Specimen_48 *string `protobuf:"bytes,8,opt,name=specimen_48,json=specimen48" json:"specimen_48,omitempty"` Specimen_36 *string `protobuf:"bytes,9,opt,name=specimen_36,json=specimen36" json:"specimen_36,omitempty"` Specimen_32 *string `protobuf:"bytes,10,opt,name=specimen_32,json=specimen32" json:"specimen_32,omitempty"` Specimen_21 *string `protobuf:"bytes,11,opt,name=specimen_21,json=specimen21" json:"specimen_21,omitempty"` Specimen_16 *string `protobuf:"bytes,12,opt,name=specimen_16,json=specimen16" json:"specimen_16,omitempty"` Note *string `protobuf:"bytes,13,opt,name=note" json:"note,omitempty"` // contains filtered or unexported fields }
Corresponds to SampleTextProto in google3/java/com/google/fonts/backend/spanner/google_fonts_proto.proto
func (*SampleTextProto) Descriptor
deprecated
func (*SampleTextProto) Descriptor() ([]byte, []int)
Deprecated: Use SampleTextProto.ProtoReflect.Descriptor instead.
func (*SampleTextProto) GetMastheadFull ¶
func (x *SampleTextProto) GetMastheadFull() string
func (*SampleTextProto) GetMastheadPartial ¶
func (x *SampleTextProto) GetMastheadPartial() string
func (*SampleTextProto) GetNote ¶
func (x *SampleTextProto) GetNote() string
func (*SampleTextProto) GetPosterLg ¶
func (x *SampleTextProto) GetPosterLg() string
func (*SampleTextProto) GetPosterMd ¶
func (x *SampleTextProto) GetPosterMd() string
func (*SampleTextProto) GetPosterSm ¶
func (x *SampleTextProto) GetPosterSm() string
func (*SampleTextProto) GetSpecimen_16 ¶
func (x *SampleTextProto) GetSpecimen_16() string
func (*SampleTextProto) GetSpecimen_21 ¶
func (x *SampleTextProto) GetSpecimen_21() string
func (*SampleTextProto) GetSpecimen_32 ¶
func (x *SampleTextProto) GetSpecimen_32() string
func (*SampleTextProto) GetSpecimen_36 ¶
func (x *SampleTextProto) GetSpecimen_36() string
func (*SampleTextProto) GetSpecimen_48 ¶
func (x *SampleTextProto) GetSpecimen_48() string
func (*SampleTextProto) GetStyles ¶
func (x *SampleTextProto) GetStyles() string
func (*SampleTextProto) GetTester ¶
func (x *SampleTextProto) GetTester() string
func (*SampleTextProto) ProtoMessage ¶
func (*SampleTextProto) ProtoMessage()
func (*SampleTextProto) ProtoReflect ¶
func (x *SampleTextProto) ProtoReflect() protoreflect.Message
func (*SampleTextProto) Reset ¶
func (x *SampleTextProto) Reset()
func (*SampleTextProto) String ¶
func (x *SampleTextProto) String() string
type SourceFileProto ¶
type SourceFileProto struct { SourceFile *string `protobuf:"bytes,1,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` DestFile *string `protobuf:"bytes,2,opt,name=dest_file,json=destFile" json:"dest_file,omitempty"` // contains filtered or unexported fields }
A file to take from source and where to put it in dest Ex web/split/Roboto[wdth,wght].ttf => Roboto[wdth,wght].ttf
func (*SourceFileProto) Descriptor
deprecated
func (*SourceFileProto) Descriptor() ([]byte, []int)
Deprecated: Use SourceFileProto.ProtoReflect.Descriptor instead.
func (*SourceFileProto) GetDestFile ¶
func (x *SourceFileProto) GetDestFile() string
func (*SourceFileProto) GetSourceFile ¶
func (x *SourceFileProto) GetSourceFile() string
func (*SourceFileProto) ProtoMessage ¶
func (*SourceFileProto) ProtoMessage()
func (*SourceFileProto) ProtoReflect ¶
func (x *SourceFileProto) ProtoReflect() protoreflect.Message
func (*SourceFileProto) Reset ¶
func (x *SourceFileProto) Reset()
func (*SourceFileProto) String ¶
func (x *SourceFileProto) String() string
type SourceProto ¶
type SourceProto struct { RepositoryUrl *string `protobuf:"bytes,1,opt,name=repository_url,json=repositoryUrl" json:"repository_url,omitempty"` Branch *string `protobuf:"bytes,5,opt,name=branch" json:"branch,omitempty"` Commit *string `protobuf:"bytes,2,opt,name=commit" json:"commit,omitempty"` ArchiveUrl *string `protobuf:"bytes,3,opt,name=archive_url,json=archiveUrl" json:"archive_url,omitempty"` Files []*SourceFileProto `protobuf:"bytes,4,rep,name=files" json:"files,omitempty"` // Next = 6 // contains filtered or unexported fields }
func (*SourceProto) Descriptor
deprecated
func (*SourceProto) Descriptor() ([]byte, []int)
Deprecated: Use SourceProto.ProtoReflect.Descriptor instead.
func (*SourceProto) GetArchiveUrl ¶
func (x *SourceProto) GetArchiveUrl() string
func (*SourceProto) GetBranch ¶
func (x *SourceProto) GetBranch() string
func (*SourceProto) GetCommit ¶
func (x *SourceProto) GetCommit() string
func (*SourceProto) GetFiles ¶
func (x *SourceProto) GetFiles() []*SourceFileProto
func (*SourceProto) GetRepositoryUrl ¶
func (x *SourceProto) GetRepositoryUrl() string
func (*SourceProto) ProtoMessage ¶
func (*SourceProto) ProtoMessage()
func (*SourceProto) ProtoReflect ¶
func (x *SourceProto) ProtoReflect() protoreflect.Message
func (*SourceProto) Reset ¶
func (x *SourceProto) Reset()
func (*SourceProto) String ¶
func (x *SourceProto) String() string
type TargetProto ¶
type TargetProto struct { TargetType *TargetTypeProto `` // e.g., OS /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Message so we can add additional fields like value in future
func (*TargetProto) Descriptor
deprecated
func (*TargetProto) Descriptor() ([]byte, []int)
Deprecated: Use TargetProto.ProtoReflect.Descriptor instead.
func (*TargetProto) GetTargetType ¶
func (x *TargetProto) GetTargetType() TargetTypeProto
func (*TargetProto) ProtoMessage ¶
func (*TargetProto) ProtoMessage()
func (*TargetProto) ProtoReflect ¶
func (x *TargetProto) ProtoReflect() protoreflect.Message
func (*TargetProto) Reset ¶
func (x *TargetProto) Reset()
func (*TargetProto) String ¶
func (x *TargetProto) String() string
type TargetTypeProto ¶
type TargetTypeProto int32
const ( TargetTypeProto_TARGET_UNSPECIFIED TargetTypeProto = 0 TargetTypeProto_TARGET_OS_WINDOWS TargetTypeProto = 1 TargetTypeProto_TARGET_OS_MAC TargetTypeProto = 2 TargetTypeProto_TARGET_OS_LINUX TargetTypeProto = 3 TargetTypeProto_TARGET_OS_ANDROID TargetTypeProto = 4 TargetTypeProto_TARGET_OS_IOS TargetTypeProto = 5 )
func (TargetTypeProto) Descriptor ¶
func (TargetTypeProto) Descriptor() protoreflect.EnumDescriptor
func (TargetTypeProto) Enum ¶
func (x TargetTypeProto) Enum() *TargetTypeProto
func (TargetTypeProto) EnumDescriptor
deprecated
func (TargetTypeProto) EnumDescriptor() ([]byte, []int)
Deprecated: Use TargetTypeProto.Descriptor instead.
func (TargetTypeProto) Number ¶
func (x TargetTypeProto) Number() protoreflect.EnumNumber
func (TargetTypeProto) String ¶
func (x TargetTypeProto) String() string
func (TargetTypeProto) Type ¶
func (TargetTypeProto) Type() protoreflect.EnumType
func (*TargetTypeProto) UnmarshalJSON
deprecated
func (x *TargetTypeProto) UnmarshalJSON(b []byte) error
Deprecated: Do not use.