feat: add web CJK font loading and robust cross-platform font detection
This commit is contained in:
1 parent
ab72c5ad56
commit
1fee62dd54
8 files changed
+220
-51
No files matched your search
@@ -217,13 +217,8 @@ fn draw(app: &SolveApp, ui: &mut egui::Ui, painter: &egui::Painter, proj: &Proj,
|
||||
None
|
||||
};
|
||||
let sign = match (to_span, &d.kind) {
|
||||
(Some(span), _) => {
|
||||
if span < 0.0 {
|
||||
-1.0
|
||||
} else {
|
||||
1.0
|
||||
}
|
||||
}
|
||||
(Some(span), _) if span < 0.0 => -1.0,
|
||||
(Some(_), _) => 1.0,
|
||||
(_, Kind::Extrude { direction: 1, .. }) => -1.0,
|
||||
_ => 1.0,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user