From 4771411a5dbfebb3310b4c05caabc2ed876d3459 Mon Sep 17 00:00:00 2001 From: ohadrau Date: Thu, 3 Jan 2019 22:48:58 -0500 Subject: [PATCH] Add FontAwesome backspace --- examples/Calculator.re | 9 ++++++--- examples/FontAwesome5FreeSolid.otf | Bin 0 -> 653868 bytes examples/dune | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 examples/FontAwesome5FreeSolid.otf diff --git a/examples/Calculator.re b/examples/Calculator.re index 8e282c9c8..4766f36e1 100644 --- a/examples/Calculator.re +++ b/examples/Calculator.re @@ -5,6 +5,8 @@ open Revery.Core.Window; open Revery.UI; open Revery.UI.Components; +open CamomileLibraryDefault.Camomile; + module Row = ( val component((render, ~children, ()) => render( @@ -45,7 +47,7 @@ module Column = ( ); module Button = ( - val component((render, ~contents: string, ~onClick, ~children, ()) => + val component((render, ~fontFamily="Roboto-Regular.ttf", ~contents: string, ~onClick, ~children, ()) => render( () => { let viewStyle = @@ -64,7 +66,7 @@ module Button = ( let textStyle = Style.make( ~color=Colors.black, - ~fontFamily="Roboto-Regular.ttf", + ~fontFamily, ~fontSize=32, (), ); @@ -292,7 +294,8 @@ module Calculator = ( /> /* TODO: Switch to a font with a backspace character */