log 404s and other log improvements.

This commit is contained in:
fiatjaf
2024-10-06 15:56:20 -03:00
parent a5dac15262
commit 84b81654f0
9 changed files with 14 additions and 10 deletions

View File

@@ -685,7 +685,7 @@ func drawShapedBlockAt(
data := face.GlyphData(g.GlyphID)
switch format := data.(type) {
case api.GlyphOutline:
drawOutline(g, format, f, currentScale, xPos, yPos)
drawOutline(format, f, currentScale, xPos, yPos)
case nil:
continue
default:
@@ -829,7 +829,7 @@ func containsMedia(paragraphs []string) bool {
}
// this draws a font glyph (i.e. a letter) according to instructions and scale and whatever
func drawOutline(g shaping.Glyph, bitmap api.GlyphOutline, f *rasterx.Filler, scale float32, x, y float32) {
func drawOutline(bitmap api.GlyphOutline, f *rasterx.Filler, scale float32, x, y float32) {
for _, s := range bitmap.Segments {
switch s.Op {
case api.SegmentOpMoveTo: