style

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveStylesFromSRTText

func RemoveStylesFromSRTText(text string) string

RemoveStylesFromSRTText removes any formatting from the given string such that

e.g. "<...>some text</...>" => "some text"

TODO: At the moment, encoding styles is more complexity then it is worth - so rather than storing the styles in SRT text, we just seek to remove any styling. One day...?

Types

type Style

type Style struct {
	FontName string
	FontSize uint
}

Style defines the aesthetic aspects of a piece of text when rendered

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL