aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv/pjw.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/fontsrv/pjw.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/fontsrv/pjw.c')
-rw-r--r--src/cmd/fontsrv/pjw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/fontsrv/pjw.c b/src/cmd/fontsrv/pjw.c
index 30ebbed2..82e8cfa1 100644
--- a/src/cmd/fontsrv/pjw.c
+++ b/src/cmd/fontsrv/pjw.c
@@ -96,7 +96,7 @@ drawpjw(Memimage *m, Fontchar *fc, int x, int width, int height, int ascent)
Memimage *pm, *pm1, *pm2;
Rectangle r;
int margin;
-
+
w = width;
// assume margin below baseline is
@@ -116,7 +116,7 @@ drawpjw(Memimage *m, Fontchar *fc, int x, int width, int height, int ascent)
close(p[0]);
if(pm == nil)
goto Error;
-
+
pm1 = allocmemimage(pm->r, GREY8);
memimagedraw(pm1, pm1->r, pm, pm->r.min, nil, ZP, S);
pm2 = resample(w, w, pm1);
@@ -216,7 +216,7 @@ fac(int L)
return f;
}
-/*
+/*
* i0(x) is the modified Bessel function, Σ (x/2)^2L / (L!)²
* There are faster ways to calculate this, but we precompute
* into a table so let's keep it simple.