// Path: app/src/main/java/fyp/hkust/facet/util/FontManager.java
// public class FontManager {
// 
//     public static final String ROOT = "fonts/",
//             CUSTOM_FONT = "robotoLight.ttf",
//             APP_FONT = ROOT + "robotoLight.ttf",
//             TITLE_FONT = "Lobster.otf";
// 
//     public static Typeface getTypeface(Context context, String font) {
//         return Typeface.createFromAsset(context.getAssets(), font);
//     }
// 
//     public static void markAsIconContainer(View v, Typeface typeface) {
//         if (v instanceof ViewGroup) {
//             ViewGroup vg = (ViewGroup) v;
//             for (int i = 0; i < vg.getChildCount(); i++) {
//                 View child = vg.getChildAt(i);
//                 markAsIconContainer(child,typeface);
//             }
//         } else if (v instanceof TextView) {
//             ((TextView) v).setTypeface(typeface);
//         }
//     }
// 
// 
// }


import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import fyp.hkust.facet.R;
import fyp.hkust.facet.util.FontManager;
package fyp.hkust.facet.activity;



public class AboutUsActivity extends AppCompatActivity {

    private Typeface fontType;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_us);

        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

// Path: app/src/main/java/fyp/hkust/facet/util/FontManager.java
// public class FontManager {
// 
//     public static final String ROOT = "fonts/",
//             CUSTOM_FONT = "robotoLight.ttf",
//             APP_FONT = ROOT + "robotoLight.ttf",
//             TITLE_FONT = "Lobster.otf";
// 
//     public static Typeface getTypeface(Context context, String font) {
//         return Typeface.createFromAsset(context.getAssets(), font);
//     }
// 
//     public static void markAsIconContainer(View v, Typeface typeface) {
//         if (v instanceof ViewGroup) {
//             ViewGroup vg = (ViewGroup) v;
//             for (int i = 0; i < vg.getChildCount(); i++) {
//                 View child = vg.getChildAt(i);
//                 markAsIconContainer(child,typeface);
//             }
//         } else if (v instanceof TextView) {
//             ((TextView) v).setTypeface(typeface);
//         }
//     }
// 
// 
// }


// Path: app/src/main/java/fyp/hkust/facet/activity/AboutUsActivity.java
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import fyp.hkust.facet.R;
import fyp.hkust.facet.util.FontManager;

package fyp.hkust.facet.activity;



public class AboutUsActivity extends AppCompatActivity {

    private Typeface fontType;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_us);

        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        fontType = FontManager.getTypeface(getApplicationContext(), FontManager.APP_FONT);