SharpFont.HarfBuzz icon indicating copy to clipboard operation
SharpFont.HarfBuzz copied to clipboard

The type of namespace name 'Face' could not be found.

Open rutcreate opened this issue 9 years ago • 7 comments

I got this message when I try to build application.

rutcreate avatar Dec 21 '15 04:12 rutcreate

If you take a look at the directions in the README, you'll see that you have to compile SharpFont in the Dependencies folder first.

This is an unnecessarily complication in the build process, so I am working on automating it through MSBuild and should have something up in a few minutes that will automatically compile SharpFont when you try to compile SharpFont.HarfBuzz.

Robmaister avatar Dec 22 '15 19:12 Robmaister

It's still not working. I did following steps and I got an error.

  1. clone from repo.
  2. git submodule update --init --recursive
  3. open SharpFont.HarfBuzz.sln.
  4. Set SharpFont.HarfBuzz.Example as startup project.
  5. Run.
screen shot 2558-12-28 at 17 55 58

rutcreate avatar Dec 28 '15 11:12 rutcreate

oh this project is not yet configured to work on non-Windows platforms, should be as simple as creating a SharpFont.HarfBuzz.dll.config (in case you can't tell this project is still very much in it's infancy)

Does OS X distribute a copy of HarfBuzz? I don't have a mac to test on.

Robmaister avatar Dec 29 '15 06:12 Robmaister

A quick search shows nothing obvious (which was not the case for SharpFont/freetype). I'll write up the .dll.config file, if you could compile harfbuzz for OS X as a .dylib and submit a pull request with it in the /Dependencies folder, I should be able to make it work.

Robmaister avatar Dec 29 '15 06:12 Robmaister

Assuming no standard distribution on OS X, compile libharfbuzz.0.dylib and place it in the Dependencies directory. Modify SharpFont.HarfBuzz.Example.csproj, adding this to the end of the ItemGroup with the other .dll references (currently lines 48-64):

<Content Include="..\..\Dependencies\libharfbuzz.0.dylib">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

And then recompile and run, and it should work. If it does, please submit it as a pull request so others can have it working easily on OS X, otherwise let me know what error mesage you're getting and I'll look into it further.

Robmaister avatar Dec 29 '15 07:12 Robmaister

@rutcreate Any updates? Were you able to compile HarfBuzz for OS X?

Robmaister avatar Jan 10 '16 18:01 Robmaister

Hi @Robmaister, I haven't tested yet. I will keep you updated.

rutcreate avatar Jan 11 '16 03:01 rutcreate