Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Type 3 name docs #43

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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