mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 22:01:42 +03:00
1dfdee5808
Use the new Enso Font; also change the anti-aliasing logic to be based on device pixel ratio, rather than platform. This will improve the clarity of font rendering on Windows/Linux machines with high pixel densities. Design reference: ![image](https://github.com/enso-org/enso/assets/1047859/934ec9ac-52c3-4a81-a9f9-143378ecb658) Tested on various combinations of DPR/platform: OS X, `devicePixelRatio` = 2 (should look similar to how we were already rendering *mplus1* on OS X): <img width="1440" alt="Screenshot 2023-08-07 at 5 46 11 PM" src="https://github.com/enso-org/enso/assets/1047859/2fdf251a-ba5e-426f-b6c4-194347a9cee4"> Windows, `devicePixelRatio` = 1.25 (should look similar to how we were already rendering *mplus1* on this platform/DPR): ![image](https://github.com/enso-org/enso/assets/1047859/55c4a129-4fff-4a9b-8e55-51a5d206e659) Linux, `devicePixelRatio` = 1 (should look similar to how we were already rendering *mplus1* on this platform/DPR): ![image](https://github.com/enso-org/enso/assets/1047859/c5ac61f0-e3c5-43ca-8ee7-e1e04e84d35e) # Important Notes Style changes: - Use the Enso Font for code in Rust, replacing the DejaVu fonts. - Use the Enso Font in HTML: code in documentation, and error visualizations. - Change SpanWidgets from Bold to Extra Bold, to match the design. Implementation improvements: - The new font download is cached (and Github-authenticated); this should eliminate a "rate limit" build failure I've encountered in the past. - Clean up DocSection HTML rendering a bit. - Remove a CSS file that seems to have been superseded.
27 lines
1.0 KiB
XML
27 lines
1.0 KiB
XML
|
|
<component name="#ProjectRunConfigurationManager">
|
|
<configuration
|
|
default="false"
|
|
name="clippy/enso-font [wasm]"
|
|
type="CargoCommandRunConfiguration"
|
|
factoryName="Cargo Command"
|
|
folderName="📚 Lib font-family"
|
|
>
|
|
<option name="command" value="clippy --all-targets --target wasm32-unknown-unknown --target-dir dist/intellij_wasm --package enso-font" />
|
|
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
|
|
<option name="channel" value="DEFAULT" />
|
|
<option name="requiredFeatures" value="true" />
|
|
<option name="allFeatures" value="false" />
|
|
<option name="emulateTerminal" value="false" />
|
|
<option name="withSudo" value="false" />
|
|
<option name="buildTarget" value="REMOTE" />
|
|
<option name="backtrace" value="SHORT" />
|
|
<envs />
|
|
<option name="isRedirectInput" value="false" />
|
|
<option name="redirectInputPath" value="" />
|
|
<method v="2">
|
|
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
|
|
</method>
|
|
</configuration>
|
|
</component>
|
|
|