mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-06 04:25:22 +00:00
changes!
This commit is contained in:
parent
d3028697f1
commit
f38d051d7d
@ -213,16 +213,6 @@ public class UIDataController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getFormatFromExtension(String extension) {
|
|
||||||
switch (extension) {
|
|
||||||
case "ttf": return "truetype";
|
|
||||||
case "woff": return "woff";
|
|
||||||
case "woff2": return "woff2";
|
|
||||||
case "eot": return "embedded-opentype";
|
|
||||||
case "svg": return "svg";
|
|
||||||
default: return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Data classes
|
// Data classes
|
||||||
@Data
|
@Data
|
||||||
@ -264,7 +254,7 @@ public class UIDataController {
|
|||||||
this.type = getFormatFromExtension(extension);
|
this.type = getFormatFromExtension(extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getFormatFromExtension(String extension) {
|
private static String getFormatFromExtension(String extension) {
|
||||||
switch (extension) {
|
switch (extension) {
|
||||||
case "ttf": return "truetype";
|
case "ttf": return "truetype";
|
||||||
case "woff": return "woff";
|
case "woff": return "woff";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user