Skip to content

Commit

Permalink
CFF hinting (WIP)
Browse files Browse the repository at this point in the history
Draft of the CFF hinting support. This will need to be broken into smaller PRs for actual review. Depends on #520
  • Loading branch information
dfrg committed Jul 24, 2023
1 parent d281c3d commit cb2ef0e
Show file tree
Hide file tree
Showing 5 changed files with 1,183 additions and 97 deletions.
1 change: 1 addition & 0 deletions read-fonts/src/tables/postscript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::fmt;

mod blend;
mod fd_select;
mod hint;
mod index;
mod scale;
mod stack;
Expand Down
2 changes: 1 addition & 1 deletion read-fonts/src/tables/postscript/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ pub struct Blues {
}

impl Blues {
fn new(values: impl Iterator<Item = Fixed>) -> Self {
pub(crate) fn new(values: impl Iterator<Item = Fixed>) -> Self {
let mut blues = Self::default();
let mut stash = Fixed::ZERO;
for (i, value) in values.take(MAX_BLUE_VALUES * 2).enumerate() {
Expand Down
Loading

0 comments on commit cb2ef0e

Please sign in to comment.