title: Firemonkey: Adding a font from resource to memory and using it
body: <p>In <code>VCL</code>, I could load a font from resource and without saving it I could use it from memory.</p>
  
  <p>Here is the code I use and it works in <code>VCL</code>:</p>
  
  <pre><code>procedure TForm1.Button1Click(Sender: TObject);
  var
     ResStream  : tResourceStream;
     FontsCount : DWORD;
  begin
     ResStream  := tResourceStream.Create(hInstance, 'MyResourceName', RT_RCDATA);
     winapi.windows.AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount);
     ResStream.Free();
     button1.Font.name := 'MySavedFontNameInResource';
  end;
  </code></pre>
  
  <p>In Firemonkey I just changed <code>button1.Font.name</code> to <code>button1.Font.family</code> but unfortunately the font didn't change. So I think this code is not compatible with firemonkey.</p>
  
  <p>So in Firemonkey, how can I load a font from resource and save it temporary to memory and use it directly from there?</p>
  
  <h1>Update:</h1>
  
  <p>I saw these pages: <a href="https://stackoverflow.com/questions/15985465/install-font-in-firemonkey?lq=1">Install font in firemonkey</a>, <a href="https://stackoverflow.com/questions/2305344/how-to-use-external-fonts?lq=1">How to use external fonts?</a></p>
  
  <p>According to <em><a href="https://stackoverflow.com/a/18413827/2570054">Mr Ed</a></em> 's answer, it seems that there is no solution for this problem in FMX. But maybe we could load the font if we install it before running the app. I tried almost everything but I still can't load the the font.</p>