Skip to content

Commit ca47a55

Browse files
authored
Update Type 3 name docs (#43)
1 parent bda6c41 commit ca47a55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/font.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ writer!(Type3Font: |obj| {
105105

106106
impl<'a> Type3Font<'a> {
107107
/// Write the `/Name` attribute, which is the name of the font in the
108-
/// current resource dictionary. Required in PDF 1.0, discouraged in PDF
109-
/// 1.1+.
108+
/// current resource dictionary. Always required in PDF 1.0, required if
109+
/// `FontName` is set in child font descriptor.
110110
pub fn name(&mut self, name: Name) -> &mut Self {
111111
self.pair(Name(b"Name"), name);
112112
self
@@ -443,7 +443,7 @@ writer!(FontDescriptor: |obj| {
443443
});
444444

445445
impl<'a> FontDescriptor<'a> {
446-
/// Write the `/FontName` attribute. Required.
446+
/// Write the `/FontName` attribute. Required, except for Type 3 fonts.
447447
pub fn name(&mut self, name: Name) -> &mut Self {
448448
self.pair(Name(b"FontName"), name);
449449
self

0 commit comments

Comments
 (0)