Ok, let's do it step by step... 1) Login into putty and winscp 2) Go to destination folder, for example, /usr/share/fonts Code: cd /usr/share/fonts 3) Decide, what file will be changed and copy it to backup, for example, file is Sans.ttf Code: cp Sans.ttf Sans.ttf.orig 4) Edit Sans.ttf as you want and save the file 5) Run Code: diff -u Sans.ttf.orig Sans.ttf > unified_diff.patch This will create unified_diff.patch into /usr/share/fonts 6) Open unified_diff.patch and you will see something like this: Code: --- Sans.ttf.orig +++ Sans.ttf *some diff-code* Edit it to Code: --- /usr/share/fonts/Sans.ttf +++ /usr/share/fonts/Sans.ttf *some diff-code* And save patch...
cd /usr/share/fonts
cp Sans.ttf Sans.ttf.orig
diff -u Sans.ttf.orig Sans.ttf > unified_diff.patch
--- Sans.ttf.orig +++ Sans.ttf *some diff-code*
--- /usr/share/fonts/Sans.ttf +++ /usr/share/fonts/Sans.ttf *some diff-code*