Fixed tests.

This commit is contained in:
Samuel Guerra 2024-02-13 01:23:45 -03:00
parent a47f8b7996
commit aa35e144ba
2 changed files with 1 additions and 11 deletions

View File

@ -3950,16 +3950,6 @@ pub enum OutlineHintingOptions {
/// do. /// do.
Full(f32), Full(f32),
} }
impl OutlineHintingOptions {
/// Returns the point size that will be used for grid fitting, if any.
#[inline]
pub fn grid_fitting_size(&self) -> Option<f32> {
match *self {
Self::None => None,
Self::Vertical(size) | Self::VerticalSubpixel(size) | Self::Full(size) => Some(size),
}
}
}
impl From<OutlineHintingOptions> for font_kit::hinting::HintingOptions { impl From<OutlineHintingOptions> for font_kit::hinting::HintingOptions {
fn from(value: OutlineHintingOptions) -> Self { fn from(value: OutlineHintingOptions) -> Self {
use font_kit::hinting::HintingOptions::*; use font_kit::hinting::HintingOptions::*;

View File

@ -12,7 +12,7 @@
//! fn countdown(n: impl IntoVar<usize>) -> impl UiNode { //! fn countdown(n: impl IntoVar<usize>) -> impl UiNode {
//! DataView!(::<usize>, n, hn!(|a: &DataViewArgs<usize>| { //! DataView!(::<usize>, n, hn!(|a: &DataViewArgs<usize>| {
//! // we generate a new view on the first call or when the data has changed to zero. //! // we generate a new view on the first call or when the data has changed to zero.
//! if a.is_nil() || a.data().get_new() == Some(0) { //! if a.view_is_nil() || a.data().get_new() == Some(0) {
//! a.set_view(if a.data().get() > 0 { //! a.set_view(if a.data().get() > 0 {
//! // countdown view //! // countdown view
//! Text! { //! Text! {