Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Myagmartseren committed Mar 23, 2024
2 parents 14eac67 + 80cf5ea commit 8c1febf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions buff.go
Expand Up @@ -31,12 +31,12 @@ func (b *Buff) Bytes() []byte {
return b.datas
}

// Position : get current postion
// Position : get current position
func (b *Buff) Position() int {
return b.position
}

// SetPosition : set current postion
// SetPosition : set current position
func (b *Buff) SetPosition(pos int) {
b.position = pos
}
2 changes: 1 addition & 1 deletion fontmaker/core/ttfparser.go
Expand Up @@ -87,7 +87,7 @@ func (t *TTFParser) Kern() *KernTable {
return t.kern
}

// UnderlinePosition postion of underline
// UnderlinePosition position of underline
func (t *TTFParser) UnderlinePosition() int {
return t.underlinePosition
}
Expand Down
4 changes: 2 additions & 2 deletions gopdf.go
Expand Up @@ -931,7 +931,7 @@ func convertNumericToFloat64(size interface{}) (fontSize float64, err error) {
}

// SetFontWithStyle : set font style support Regular or Underline
// for Bold|Italic should be loaded apropriate fonts with same styles defined
// for Bold|Italic should be loaded appropriate fonts with same styles defined
// size MUST be uint*, int* or float64*
func (gp *GoPdf) SetFontWithStyle(family string, style int, size interface{}) error {
fontSize, err := convertNumericToFloat64(size)
Expand Down Expand Up @@ -967,7 +967,7 @@ func (gp *GoPdf) SetFontWithStyle(family string, style int, size interface{}) er
}

// SetFont : set font style support "" or "U"
// for "B" and "I" should be loaded apropriate fonts with same styles defined
// for "B" and "I" should be loaded appropriate fonts with same styles defined
// size MUST be uint*, int* or float64*
func (gp *GoPdf) SetFont(family string, style string, size interface{}) error {
return gp.SetFontWithStyle(family, getConvertedStyle(style), size)
Expand Down
4 changes: 2 additions & 2 deletions pdf_dictionary_obj.go
Expand Up @@ -19,8 +19,8 @@ var EntrySelectors = []int{
4, 4, 4, 4, 4, 4, 4,
}

// ErrNotSupportShortIndexYet not suport none short index yet
var ErrNotSupportShortIndexYet = errors.New("not suport none short index yet")
// ErrNotSupportShortIndexYet not support none short index yet
var ErrNotSupportShortIndexYet = errors.New("not support none short index yet")

// PdfDictionaryObj pdf dictionary object
type PdfDictionaryObj struct {
Expand Down
2 changes: 1 addition & 1 deletion pdf_protection.go
Expand Up @@ -34,7 +34,7 @@ type PDFProtection struct {
encryptionKey []byte
}

// SetProtection set protection infomation
// SetProtection set protection information
func (p *PDFProtection) SetProtection(permissions int, userPass []byte, ownerPass []byte) error {
return p.setProtection(permissions, userPass, ownerPass)
}
Expand Down
2 changes: 1 addition & 1 deletion subset_font_obj.go
Expand Up @@ -326,7 +326,7 @@ func (s *SubsetFontObj) GetUnderlineThicknessPx(fontSize float64) float64 {
return (float64(s.ttfp.UnderlineThickness()) / float64(s.ttfp.UnitsPerEm())) * fontSize
}

// GetUnderlinePosition underline postion.
// GetUnderlinePosition underline position.
func (s *SubsetFontObj) GetUnderlinePosition() int {
return s.ttfp.UnderlinePosition()
}
Expand Down

0 comments on commit 8c1febf

Please sign in to comment.