-
Notifications
You must be signed in to change notification settings - Fork 14
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
gftools mode for crater #1069
gftools mode for crater #1069
Conversation
Also removes the ability to run both modes at once.
This happens sometimes in gftools, specifically if an error occurs in the ninja subprocess.
This will only run gftools mode for fonts using the default recipeProvider.
} | ||
|
||
fn should_build_in_gftools_mode(src_path: &Path, config: &Config) -> bool { | ||
// skip noto, which have an implicitly different recipe provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we link to where python does this implicit recipe provider selection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't, gftools cannot build these fonts, even with python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should refer the reader to https://github.com/googlefonts/oxidize/blob/main/text/2024-06-26-fixes-and-nonstandard-builds.md#noto ?
fontc_crater/src/ci.rs
Outdated
return false; | ||
} | ||
|
||
// if there is a recipe provider other than googlefonts, we skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should tersely say why, e.g. because we have no idea what it will do, it's arbitrary code
resources/scripts/ttx_diff.py
Outdated
cmd.append(str(source)) | ||
|
||
build(cmd, build_dir) | ||
|
||
|
||
def run_gftools( | ||
source: Path, config: Path, build_dir: Path, fontc_bin: Union[Path, None] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Union[Path, None]
=> Optional[Path]
resources/scripts/ttx_diff.py
Outdated
@@ -259,6 +285,9 @@ def copy(old, new): | |||
return new | |||
|
|||
|
|||
# def find_and_copy_one_file(from_dir: Path, to_file: Path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover?
This wires everything up to get gftools working in crater.
Parse more config items google-fonts-sources#24 andSupport for fontc and crater gftools#1047