Fixed tests.
This commit is contained in:
parent
a47f8b7996
commit
aa35e144ba
|
@ -3950,16 +3950,6 @@ pub enum OutlineHintingOptions {
|
|||
/// do.
|
||||
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 {
|
||||
fn from(value: OutlineHintingOptions) -> Self {
|
||||
use font_kit::hinting::HintingOptions::*;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//! fn countdown(n: impl IntoVar<usize>) -> impl UiNode {
|
||||
//! DataView!(::<usize>, n, hn!(|a: &DataViewArgs<usize>| {
|
||||
//! // 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 {
|
||||
//! // countdown view
|
||||
//! Text! {
|
||||
|
|
Loading…
Reference in New Issue