mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add fontpatcher
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
0619e32a42
commit
e7e916aa79
25
fontpatcher/Dockerfile
Normal file
25
fontpatcher/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM debian:stretch
|
||||
MAINTAINER Jessie Frazelle <jess@linux.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python-fontforge \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN buildDeps=' \
|
||||
ca-certificates \
|
||||
git \
|
||||
' \
|
||||
set -x \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y $buildDeps --no-install-recommends \
|
||||
&& git clone -b develop --depth 1 https://github.com/Lokaltog/vim-powerline.git /pwrline \
|
||||
&& ( \
|
||||
cd /pwrline \
|
||||
&& mv fontpatcher/fontpatcher /usr/bin/ \
|
||||
&& mv fontpatcher/PowerlineSymbols.sfd /usr/bin/ \
|
||||
) \
|
||||
&& rm -rf /pwrline \
|
||||
&& echo "Build complete."
|
||||
|
||||
ENTRYPOINT [ "fontpatcher" ]
|
30
fontpatcher/README.md
Normal file
30
fontpatcher/README.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
# fontpatcher
|
||||
|
||||
How to use:
|
||||
|
||||
1. Enter the directory where the font file lives you wish to patch.
|
||||
2. Run:
|
||||
|
||||
$ docker run --rm -it \
|
||||
-v $(pwd):/workdir \
|
||||
--workdir /workdir \
|
||||
r.j3ss.co/fontpatcher myfontfile.otf
|
||||
|
||||
3. You should have a `myfontfile-Powerline.otf` as an artifact.
|
||||
4. Copy the font file into ``~/.fonts`` (or another X font directory)::
|
||||
|
||||
$ cp MyFontFile-Powerline.otf ~/.fonts
|
||||
|
||||
**Note:** If the font is a pure bitmap font (e.g. a PCF font) it will be
|
||||
stored in the BDF format. This is usually not a problem, and you may
|
||||
convert the font back to the PCF format using ``bdftopcf`` if you want
|
||||
to. All other fonts will be stored in the OTF format regardless of the
|
||||
original format.
|
||||
|
||||
5. Update your font cache::
|
||||
|
||||
$ sudo fc-cache -vf
|
||||
|
||||
**Note:** If you use vim in rxvt-unicode in the client/daemon mode, you
|
||||
may need to close all running terminals as well for the font to be
|
||||
updated.
|
Loading…
Reference in New Issue
Block a user