FreeBSD Bugzilla – Attachment 250407 Details for
Bug 278771
japanese/font-bizud-gothic: BIZ UD Gothic fonts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
BIZ UD Gothic fonts
patch (text/plain), 6.25 KB, created by
mew14930xvi
on 2024-05-05 00:36:05 UTC
(
hide
)
Description:
BIZ UD Gothic fonts
Filename:
MIME Type:
Creator:
mew14930xvi
Created:
2024-05-05 00:36:05 UTC
Size:
6.25 KB
patch
obsolete
>diff --git a/japanese/font-bizud-gothic/Makefile b/japanese/font-bizud-gothic/Makefile >new file mode 100644 >index 000000000000..55a9aa551f6a >--- /dev/null >+++ b/japanese/font-bizud-gothic/Makefile >@@ -0,0 +1,46 @@ >+PORTNAME= bizud-gothic >+DISTVERSION= 1.051 >+CATEGORIES= japanese x11-fonts >+PKGNAMEPREFIX= ja-font- >+ >+MAINTAINER= mew14930xvi@inbox.lv >+COMMENT= Morisawa BIZ UD Gothic fonts >+WWW= https://github.com/googlefonts/morisawa-biz-ud-gothic >+ >+LICENSE= OFL11 >+LICENSE_FILE= ${WRKSRC}/OFL.txt >+ >+USES= fonts:fc >+FONTPATHSPEC= ${FONTNAME}:pri=60 >+NO_ARCH= yes >+NO_BUILD= yes >+PKGINSTALL= ${WRKDIR}/pkg-install >+PKGDEINSTALL= ${WRKDIR}/pkg-install >+SUB_FILES= pkg-install >+PORTDOCS= AUTHORS.txt CONTRIBUTORS.txt README.md >+ >+USE_GITHUB= yes >+GH_ACCOUNT= googlefonts >+GH_PROJECT= morisawa-biz-ud-gothic >+GH_TAGNAME= 18934af >+ >+OPTIONS_DEFINE= DOCS >+ >+do-install: >+ @${MKDIR} ${STAGEDIR}${FONTSDIR} >+ ${INSTALL_DATA} ${WRKSRC}/fonts/ttf/* ${STAGEDIR}${FONTSDIR} >+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \ >+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d >+ ${INSTALL_DATA} ${FILESDIR}/20-unhint-${FONTNAME}.conf \ >+ ${FILESDIR}/62-fonts-${FONTNAME}.conf \ >+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail >+ ${LN} -s -f ../conf.avail/20-unhint-${FONTNAME}.conf \ >+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${FONTNAME}.conf >+ ${LN} -s -f ../conf.avail/62-fonts-${FONTNAME}.conf \ >+ ${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${FONTNAME}.conf >+ >+post-install-DOCS-on: >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} >+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} >+ >+.include <bsd.port.mk> >diff --git a/japanese/font-bizud-gothic/distinfo b/japanese/font-bizud-gothic/distinfo >new file mode 100644 >index 000000000000..a2523a647065 >--- /dev/null >+++ b/japanese/font-bizud-gothic/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1714867958 >+SHA256 (googlefonts-morisawa-biz-ud-gothic-1.051-18934af_GH0.tar.gz) = 4b9e1397283381d77ad0db24a1eec0d2f66689c0acb741e05de95d2fe84eb0f6 >+SIZE (googlefonts-morisawa-biz-ud-gothic-1.051-18934af_GH0.tar.gz) = 36721204 >diff --git a/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf b/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf >new file mode 100644 >index 000000000000..88b159b48db3 >--- /dev/null >+++ b/japanese/font-bizud-gothic/files/20-unhint-bizud-gothic.conf >@@ -0,0 +1,17 @@ >+<?xml version="1.0"?> >+<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> >+<fontconfig> >+ <match target="font"> >+ <or> >+ <test name="family"> >+ <string>BIZ UDGothic</string> >+ </test> >+ <test name="family"> >+ <string>BIZ UDPGothic</string> >+ </test> >+ </or> >+ <edit name="autohint"> >+ <bool>false</bool> >+ </edit> >+ </match> >+</fontconfig> >diff --git a/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf b/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf >new file mode 100644 >index 000000000000..34bc40f42b63 >--- /dev/null >+++ b/japanese/font-bizud-gothic/files/62-fonts-bizud-gothic.conf >@@ -0,0 +1,16 @@ >+<?xml version="1.0"?> >+<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> >+<fontconfig> >+ <alias> >+ <family>sans-serif</family> >+ <prefer> >+ <family>BIZ UDPGothic</family> >+ </prefer> >+ </alias> >+ <alias> >+ <family>monospace</family> >+ <prefer> >+ <family>BIZ UDGothic</family> >+ </prefer> >+ </alias> >+</fontconfig> >diff --git a/japanese/font-bizud-gothic/files/pkg-install.in b/japanese/font-bizud-gothic/files/pkg-install.in >new file mode 100644 >index 000000000000..5d0fbf48f6c5 >--- /dev/null >+++ b/japanese/font-bizud-gothic/files/pkg-install.in >@@ -0,0 +1,89 @@ >+#!/bin/sh >+ >+catfontsdir () >+{ >+ while read _IN >+ do >+ case "${_IN}" in >+ *-morisawa-BIZUD*[Gg]othic-*|[0-9]*|"") ;; >+ *) echo ${_IN} ;; >+ esac >+ done >+} >+ >+ROMA="" >+BOLD="ds=y" >+ITAL="ai=0.15" >+OBLI="ai=0.15" >+RITA="ai=0.08" >+ROBL="ai=0.08" >+ >+make_xlfd() >+{ >+ _enc=$1 >+ _file=$2 >+ _vendor=$3 >+ _fname=$4 >+ _poc=$5 >+ >+ case "${_poc}:${_enc}" in >+ p:jisx0201.1976-*) PFIX="bw=0.5" ;; >+ c:jisx0201.1976-*) PFIX="bw=0.5" ;; >+ p:*) PFIX="" ;; >+ c:*) PFIX="" ;; >+ esac >+ >+ set -- "${ROMA}" medium-r \ >+ ${BOLD} bold-r \ >+ ${ITAL} medium-i \ >+ ${ITAL}:${BOLD} bold-i \ >+ ${OBLI} medium-o \ >+ ${OBLI}:${BOLD} bold-o \ >+ ${RITA} medium-ri \ >+ ${RITA}:${BOLD} bold-ri \ >+ ${ROBL} medium-ro \ >+ ${ROBL}:${BOLD} bold-ro >+ while [ $# != 0 ]; do >+ _prefix="${PFIX}:$1"; shift >+ _variant=$1; shift >+ printf "%s:%s -%s-%s-%s-normal--0-0-0-0-%s-0-%s\n" \ >+ $_prefix $_file $_vendor $_fname $_variant $_poc $_enc >+ done | sed -e 's,::,:,g' -e 's,^:,,' >+} >+ >+addentries () >+{ >+ for ENC in iso8859-1 iso10646-1 jisx0201.1976-0 jisx0208.1983-0 jisx0208.1990-0 >+ do >+ make_xlfd $ENC BIZUDGothic-Bold.ttf morisawa BIZUDGothic c >+ make_xlfd $ENC BIZUDGothic-Regular.ttf morisawa BIZUDGothic c >+ make_xlfd $ENC BIZUDPGothic-Bold.ttf morisawa BIZUDPGothic p >+ make_xlfd $ENC BIZUDPGothic-Regular.ttf morisawa BIZUDPGothic p >+ done >+} >+ >+nfonts () >+{ >+ _L=0; while read _IN; do _L=$((${_L}+1)); done; echo ${_L} >+} >+ >+case "$2" in >+POST-INSTALL) >+ cd %%FONTSDIR%% >+ touch fonts.dir >+ (catfontsdir < fonts.dir; addentries) > fonts.dir.tmp >+ nfonts < fonts.dir.tmp > fonts.dir >+ cat fonts.dir.tmp >> fonts.dir >+ rm -f fonts.dir.tmp >+ ;; >+POST-DEINSTALL) >+ cd %%FONTSDIR%% >+ catfontsdir < fonts.dir > fonts.dir.tmp >+ nfonts < fonts.dir.tmp > fonts.dir >+ cat fonts.dir.tmp >> fonts.dir >+ rm -f fonts.dir.tmp >+ if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then >+ rm -f fonts.dir >+ fi >+ ;; >+esac >diff --git a/japanese/font-bizud-gothic/pkg-descr b/japanese/font-bizud-gothic/pkg-descr >new file mode 100644 >index 000000000000..bd2e72708127 >--- /dev/null >+++ b/japanese/font-bizud-gothic/pkg-descr >@@ -0,0 +1,2 @@ >+BIZ UD Gothic is a universal design typeface designed to be easy >+to read and ideal for education and business documentation. >diff --git a/japanese/font-bizud-gothic/pkg-plist b/japanese/font-bizud-gothic/pkg-plist >new file mode 100644 >index 000000000000..667adc58e542 >--- /dev/null >+++ b/japanese/font-bizud-gothic/pkg-plist >@@ -0,0 +1,8 @@ >+%%FONTSDIR%%/BIZUDGothic-Bold.ttf >+%%FONTSDIR%%/BIZUDGothic-Regular.ttf >+%%FONTSDIR%%/BIZUDPGothic-Bold.ttf >+%%FONTSDIR%%/BIZUDPGothic-Regular.ttf >+etc/fonts/conf.avail/20-unhint-bizud-gothic.conf >+etc/fonts/conf.avail/62-fonts-bizud-gothic.conf >+etc/fonts/conf.d/20-unhint-bizud-gothic.conf >+etc/fonts/conf.d/62-fonts-bizud-gothic.conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278771
:
250407
|
250578