Skip to content

Commit

Permalink
Update Type 3 name docs (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
reknih authored Sep 30, 2024
1 parent bda6c41 commit ca47a55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca47a55

Please sign in to comment.