From ca47a55ac64ceafbcec1500789e7ced8208be278 Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Mon, 30 Sep 2024 09:52:07 +0200 Subject: [PATCH] Update Type 3 name docs (#43) --- src/font.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/font.rs b/src/font.rs index 4a0c9a5..53fc4ad 100644 --- a/src/font.rs +++ b/src/font.rs @@ -105,8 +105,8 @@ writer!(Type3Font: |obj| { impl<'a> Type3Font<'a> { /// Write the `/Name` attribute, which is the name of the font in the - /// current resource dictionary. Required in PDF 1.0, discouraged in PDF - /// 1.1+. + /// current resource dictionary. Always required in PDF 1.0, required if + /// `FontName` is set in child font descriptor. pub fn name(&mut self, name: Name) -> &mut Self { self.pair(Name(b"Name"), name); self @@ -443,7 +443,7 @@ writer!(FontDescriptor: |obj| { }); impl<'a> FontDescriptor<'a> { - /// Write the `/FontName` attribute. Required. + /// Write the `/FontName` attribute. Required, except for Type 3 fonts. pub fn name(&mut self, name: Name) -> &mut Self { self.pair(Name(b"FontName"), name); self