[latex3-commits] [git/LaTeX3-latex3-pdfresources] textfields: store (0873976)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Mar 29 18:36:42 CEST 2021
Repository : https://github.com/latex3/pdfresources
On branch : textfields
Link : https://github.com/latex3/pdfresources/commit/087397650cf1a8da3a34d02903744af61477f363
>---------------------------------------------------------------
commit 087397650cf1a8da3a34d02903744af61477f363
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Mar 29 18:36:42 2021 +0200
store
>---------------------------------------------------------------
087397650cf1a8da3a34d02903744af61477f363
experiments/testfield1.tex | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/experiments/testfield1.tex b/experiments/testfield1.tex
index af4e472..37145e7 100644
--- a/experiments/testfield1.tex
+++ b/experiments/testfield1.tex
@@ -26,7 +26,7 @@
% V,DV ??
%DA?
\pdfdict_put:nnx {l__pdffield/text/field}{V}{(blub?)}
- \pdfdict_put:nnx {l__pdffield/text/field}{DA}{(/F\__pdffield_fontname:\c_space_tl 10\c_space_tl Tf~1~0~0~rg)}
+ %\pdfdict_put:nnx {l__pdffield/text/field}{DA}{(/F\__pdffield_fontname:\c_space_tl 10\c_space_tl Tf~1~0~0~rg)}
\pdfdict_put:nnx {l__pdffield/text/field}
{Kids}
{
@@ -200,6 +200,9 @@
\cs_new:Nn \__pdffield_fontobjnum: {\pdffeedback~fontobjnum\font }
}
{
+ \usepackage[T1]{fontenc}
+ %\pdfmapline{=t1-yvtb~VenturisADF-Bold~ <<comic.ttf}
+ \pdfmapline{=t1-yvtb~VenturisADF-Bold~<<comic.ttf}
\cs_new:Nn \__pdffield_fontname: {\pdffontname\font }
\cs_new:Nn \__pdffield_fontobjnum: {\pdffontobjnum\font }
}
@@ -210,10 +213,10 @@
%\iftutex
\setmainfont{Times New Roman} %works
%\setsansfont{comicsansms} %works
-%\setsansfont{comicsansms}
+\setsansfont{comicsansms}
%\setmainfont{calibri} % doesn't work /CIDFontType2
%\setsansfont{dejavusans} % doesn't work /CIDFontType2 texlive
-\setsansfont{NotoSans}
+%\setsansfont{NotoSans}
\fi
%\usepackage{helvet}
%\usepackage{times}
@@ -227,16 +230,17 @@
%\sffamily
-\pdfmanagement_add:nnx{Catalog/AcroForm}{DA}{(/F\__pdffield_fontname:\c_space_tl 10\c_space_tl Tf~1~0~0~rg)}
-\pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font}{F\__pdffield_fontname:}{\__pdffield_fontobjnum:\c_space_tl0 \c_space_tl R}
-%\sffamily
-\font\test=phvr8r\test
-\pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font}{F\__pdffield_fontname:}{\__pdffield_fontobjnum:\c_space_tl0 \c_space_tl R}
+%\pdfmanagement_add:nnx{Catalog/AcroForm}{DA}{(/F\__pdffield_fontname:\c_space_tl 10\c_space_tl Tf~1~0~0~rg)}
+%\pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font}{F\__pdffield_fontname:}{\__pdffield_fontobjnum:\c_space_tl0 \c_space_tl R}
+%%\sffamily
+%{\font\test=t1-yvtb \test a
+%\pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font}{F\__pdffield_fontname:}{\__pdffield_fontobjnum:\c_space_tl0 \c_space_tl R}}
\par
%\sffamily
-zzz \__pdffield_text_add:n {name=blub2,width=4cm,height=15pt}
+{\font\test=t1-yvtb \test
+zzz \__pdffield_text_add:n {name=blub2,width=4cm,height=15pt}}
\par
\rmfamily
More information about the latex3-commits
mailing list.