This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
class ofApp : public ofBaseApp { | |
public: | |
ofImage earth; | |
ofQuaternion qTo; | |
float angle; | |
ofVec3f axis; | |
ofPoint green; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wc_stripe_payment_icons', 'change_my_icons' ); | |
function change_my_icons( $icons ) { | |
// var_dump( $icons ); to show all possible icons to change. | |
$icons['visa'] = '<img src="http://woocommerce-ext.reh/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/visa.svg" />'; | |
$icons['mastercard'] = '<img src="http://woocommerce-ext.reh/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/mastercard.svg" />'; | |
$icons['amex'] = '<img src="http://woocommerce-ext.reh/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/amex.svg" />'; | |
return $icons; | |
} |
Unicodes can either be integers (“A” is 65
, “B” is 66
, etc) or hex (“A” is 0x41
, “B” is 0x42
, etc).
When scripting with RoboFont or FontTools, a hard thing at first is that different styles come up in different contexts. For example, integers will often be used in scripts, but hex values are shown in UIs and in the TTX output of cmap
(the table that maps unicode values to glyphs). So, it's helpful to know how to go between them to do different types of work.
To go from a string to an unicode integer, you can use ord(), like:
>>> ord("A")
OlderNewer