title: how copy text with font in android?
body: <p>How can I copy a text from an <code>EditText</code> to the clipboard with it's set typeface?</p>
  
  <p>See following code</p>
  
  <pre><code> btnz.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              String name =et.getText().toString();
              Typeface myfont=Typeface.createFromAsset(getAssets(), "ComialUnicoder.ttf");
              tv.setText(name);
              tv.setTypeface(myfont);
          }
      });
      btncopy.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
              String font = tv.getTypeface().toString();
              ClipData clip = ClipData.newPlainText("label", font);
              clipboard.setPrimaryClip(clip);
  </code></pre>