Compare commits
No commits in common. "c8" and "c8s" have entirely different histories.
@ -1 +0,0 @@
|
||||
cca54440dd47414055507a5007cd9b663699f3e2 SOURCES/fontforge-20200314.tar.gz
|
22
.gitignore
vendored
22
.gitignore
vendored
@ -1 +1,21 @@
|
||||
SOURCES/fontforge-20200314.tar.gz
|
||||
fontforge_htdocs-20100429.tar.bz2
|
||||
fontforge_full-20100501.tar.bz2
|
||||
/fontforge_full-20110222.tar.bz2
|
||||
/fontforge_htdocs-20110221.tar.bz2
|
||||
/fontforge_full-20120731-b.tar.bz2
|
||||
/fontforge_htdocs-20120731-b.tar.bz2
|
||||
/20140813.tar.gz
|
||||
/gnulib-2bf7326.tar.gz
|
||||
/20141230.tar.gz
|
||||
/20150228.tar.gz
|
||||
/20150330.tar.gz
|
||||
/20150430.tar.gz
|
||||
/20150612.tar.gz
|
||||
/fontforge-20150824.tar.gz
|
||||
/fontforge-20160404.tar.gz
|
||||
/fontforge-20161001.tar.gz
|
||||
/fontforge-20161004.tar.gz
|
||||
/fontforge-20161005.tar.gz
|
||||
/fontforge-20161012.tar.gz
|
||||
/fontforge-20170731.tar.gz
|
||||
/fontforge-20200314.tar.gz
|
||||
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (fontforge-20200314.tar.gz) = 9eecee6162d5d160c9fe5d3e229763edb0b52f53529659f0fa8b41cf3edf0685509f51d3993da0e6e2c36fecde867af60062e131e10d7fdfbaac16323855818f
|
14
tests/scripts/generate-font.py
Normal file
14
tests/scripts/generate-font.py
Normal file
@ -0,0 +1,14 @@
|
||||
import fontforge
|
||||
import os
|
||||
|
||||
myFont = fontforge.open("Cantarell-Regular.ttf")
|
||||
myFont.generate("Cantarell-Regular.sfd")
|
||||
myFont.close()
|
||||
|
||||
myFont = fontforge.open("Cantarell-Regular.sfd")
|
||||
myFont.generate("Cantarell-Regular.ttf")
|
||||
myFont.close()
|
||||
|
||||
os.remove("Cantarell-Regular.ttf")
|
||||
os.remove("Cantarell-Regular.sfd")
|
||||
|
7
tests/scripts/generate-sfd.pe
Executable file
7
tests/scripts/generate-sfd.pe
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/fontforge
|
||||
i=1
|
||||
Open($argv[i], 1)
|
||||
#Use gen_flags=Defualt fmflags value as -1
|
||||
gen_flags = -1
|
||||
Generate("" + $fontname + ".sfd", "", gen_flags)
|
||||
|
10
tests/scripts/generate-ttf.pe
Executable file
10
tests/scripts/generate-ttf.pe
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/fontforge
|
||||
i=1
|
||||
Open($argv[i], 1)
|
||||
#Use gen_flags=Defualt fmflags value as -1
|
||||
gen_flags = -1
|
||||
Generate("" + $fontname + ".ttf", "", gen_flags)
|
||||
Generate("" + $fontname + ".otf", "", gen_flags)
|
||||
PrintSetup (5)
|
||||
PrintFont (0, 0, "", $fontname + "-sample.pdf")
|
||||
|
31
tests/scripts/get-font-metadata.py
Normal file
31
tests/scripts/get-font-metadata.py
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import fontforge
|
||||
import sys
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
f = fontforge.open(sys.argv[1])
|
||||
else:
|
||||
print("provide fontfile path as an argument")
|
||||
sys.exit(1)
|
||||
|
||||
if f.fullname:
|
||||
print("Fontname is {0}".format(f.fullname))
|
||||
else:
|
||||
print("fontname not set")
|
||||
if f.weight:
|
||||
print("Given font weight is {0}".format(f.weight))
|
||||
else:
|
||||
print("Given font weight not set")
|
||||
if f.version:
|
||||
print("Given font version is {0}".format(f.version))
|
||||
else:
|
||||
print("Given font version not set")
|
||||
if f.copyright:
|
||||
print("Given font Copyright text is => {0}".format(f.copyright))
|
||||
else:
|
||||
print("Given font copyright information not set")
|
||||
|
||||
ver = fontforge.UnicodeNamesListVersion()
|
||||
print("Libuninameslist version is : %s" % ver)
|
||||
|
23
tests/scripts/run_tests.sh
Normal file
23
tests/scripts/run_tests.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp /usr/share/fontforge/pixmaps/Cantarell-Regular.ttf .
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
echo "Executing get-font-metadata.py on Cantarell-Regular.ttf =>"
|
||||
/usr/bin/python3 get-font-metadata.py ./Cantarell-Regular.ttf
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
echo "Executing generate-font.py on Cantarell-Regular.ttf =>"
|
||||
/usr/bin/python3 generate-font.py ./Cantarell-Regular.ttf
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
cp /usr/share/fontforge/pixmaps/Cantarell-Regular.ttf .
|
||||
echo "Executing generate-sfd.pe on Cantarell-Regular.ttf =>"
|
||||
/usr/bin/fontforge -script generate-sfd.pe ./Cantarell-Regular.ttf
|
||||
rm Cantarell-Regular.ttf
|
||||
|
||||
echo "----------------------------------------------------------"
|
||||
echo "Executing generate-ttf.pe on Cantarell-Regular.sfd =>"
|
||||
/usr/bin/fontforge -script generate-ttf.pe ./Cantarell-Regular.sfd
|
||||
echo "----------------------------------------------------------"
|
||||
|
9
tests/tests.yml
Normal file
9
tests/tests.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts/
|
||||
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user